mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 11:20:15 +01:00
fix: streamline OpenAI image tools configuration by removing direct appConfig dependency and using function parameters
This commit is contained in:
parent
0b5816d1be
commit
68c6afd009
8 changed files with 63 additions and 29 deletions
|
|
@ -917,7 +917,6 @@
|
|||
* @typedef {Object} ImageGenOptions
|
||||
* @property {ServerRequest} req - The request object.
|
||||
* @property {boolean} isAgent - Whether the request is from an agent.
|
||||
* @property {FileSources} fileStrategy - The file strategy to use.
|
||||
* @property {processFileURL} processFileURL - The function to process a file URL.
|
||||
* @property {boolean} returnMetadata - Whether to return metadata.
|
||||
* @property {uploadImageBuffer} uploadImageBuffer - The function to upload an image buffer.
|
||||
|
|
@ -930,6 +929,7 @@
|
|||
* signal?: AbortSignal,
|
||||
* memory?: ConversationSummaryBufferMemory,
|
||||
* tool_resources?: AgentToolResources,
|
||||
* web_search?: ReturnType<typeof import('~/server/services/Tools/search').createOnSearchResults>,
|
||||
* }} LoadToolOptions
|
||||
* @memberof typedefs
|
||||
*/
|
||||
|
|
@ -1091,6 +1091,12 @@
|
|||
* @memberof typedefs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @exports AppConfig
|
||||
* @typedef {import('@librechat/api').AppConfig} AppConfig
|
||||
* @memberof typedefs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @exports JsonSchemaType
|
||||
* @typedef {import('@librechat/api').JsonSchemaType} JsonSchemaType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue