support for custom baseURL for OpenAI

fix messages' type in context chain
This commit is contained in:
2026-02-04 12:16:31 +03:00
parent fc5478b5ec
commit 3c7d56b213
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ export let botUser: User;
export const googleAi = new GoogleGenAI({apiKey: Environment.GEMINI_API_KEY});
export const mistralAi = new Mistral({apiKey: Environment.MISTRAL_API_KEY});
export const openAi = new OpenAI({apiKey: Environment.OPENAI_API_KEY});
export const openAi = new OpenAI({apiKey: Environment.OPENAI_API_KEY, baseURL: Environment.OPENAI_BASE_URL});
export const ollama = new Ollama({
host: Environment.OLLAMA_ADDRESS,