This commit is contained in:
Jón Levy 2025-09-20 23:39:16 -05:00 committed by GitHub
commit c2e510f564
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View file

@ -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 #

View file

@ -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',