mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
Merge 22a992b8e1
into 68c9f668c1
This commit is contained in:
commit
c2e510f564
2 changed files with 12 additions and 8 deletions
|
@ -753,6 +753,9 @@ OPENWEATHER_API_KEY=
|
|||
# JINA_API_KEY=your_jina_api_key
|
||||
# or
|
||||
# COHERE_API_KEY=your_cohere_api_key
|
||||
# Optional: Custom Cohere API URL (defaults to https://api.cohere.ai/v1)
|
||||
# COHERE_API_URL=http://litellm:8000/v1
|
||||
|
||||
|
||||
#======================#
|
||||
# MCP Configuration #
|
||||
|
|
|
@ -1639,30 +1639,31 @@ export enum ForkOptions {
|
|||
}
|
||||
|
||||
/**
|
||||
* Enum for Cohere related constants
|
||||
* Cohere related constants
|
||||
*/
|
||||
export enum CohereConstants {
|
||||
export const CohereConstants = {
|
||||
/**
|
||||
* Cohere API Endpoint, for special handling
|
||||
* Uses COHERE_API_URL environment variable if set, otherwise defaults to official API
|
||||
*/
|
||||
API_URL = 'https://api.cohere.ai/v1',
|
||||
API_URL: process.env.COHERE_API_URL || 'https://api.cohere.ai/v1',
|
||||
/**
|
||||
* Role for "USER" messages
|
||||
*/
|
||||
ROLE_USER = 'USER',
|
||||
ROLE_USER: 'USER' as const,
|
||||
/**
|
||||
* Role for "SYSTEM" messages
|
||||
*/
|
||||
ROLE_SYSTEM = 'SYSTEM',
|
||||
ROLE_SYSTEM: 'SYSTEM' as const,
|
||||
/**
|
||||
* Role for "CHATBOT" messages
|
||||
*/
|
||||
ROLE_CHATBOT = 'CHATBOT',
|
||||
ROLE_CHATBOT: 'CHATBOT' as const,
|
||||
/**
|
||||
* Title message as required by Cohere
|
||||
*/
|
||||
TITLE_MESSAGE = 'TITLE:',
|
||||
}
|
||||
TITLE_MESSAGE: 'TITLE:' as const,
|
||||
} as const;
|
||||
|
||||
export enum SystemCategories {
|
||||
ALL = 'sys__all__sys',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue