mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
🤖 feat: Custom Endpoint Agents (experimental) (#4627)
* wip: first pass, custom endpoint agents * chore: imports * chore: consolidate exports * fix: imports * feat: convert message.content array to strings for legacy format handling (deepseek/groq) * refactor: normalize ollama endpoint name * refactor: update mocking in isDomainAllowed.spec.js * refactor: update deepseekModels in tokens.js and tokens.spec.js
This commit is contained in:
parent
9437e95315
commit
2e519f9b57
23 changed files with 230 additions and 73 deletions
|
@ -942,6 +942,29 @@
|
|||
* @memberof typedefs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} AgentClientOptions
|
||||
* @property {Agent} agent - The agent configuration object
|
||||
* @property {string} endpoint - The endpoint identifier for the agent
|
||||
* @property {Object} req - The request object
|
||||
* @property {string} [name] - The username
|
||||
* @property {string} [modelLabel] - The label for the model being used
|
||||
* @property {number} [maxContextTokens] - Maximum number of tokens allowed in context
|
||||
* @property {Object} [endpointTokenConfig] - Token configuration for the endpoint
|
||||
* @property {boolean} [resendFiles] - Whether to resend files
|
||||
* @property {string} [imageDetail] - Detail level for image processing
|
||||
* @property {Object} [spec] - Specification object
|
||||
* @property {Promise<MongoFile[]>} [attachments] - Promise resolving to file attachments
|
||||
* @property {Object} [headers] - Additional headers for requests
|
||||
* @property {string} [proxy] - Proxy configuration
|
||||
* @property {Object} [tools] - Available tools for the agent
|
||||
* @property {Object} [toolMap] - Mapping of tool configurations
|
||||
* @property {Object} [eventHandlers] - Custom event handlers
|
||||
* @property {Object} [addParams] - Additional parameters to add to requests
|
||||
* @property {string[]} [dropParams] - Parameters to remove from requests
|
||||
* @memberof typedefs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @exports ImportBatchBuilder
|
||||
* @typedef {import('./server/utils/import/importBatchBuilder.js').ImportBatchBuilder} ImportBatchBuilder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue