mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 13:04:08 +00:00
fix(ai): Fix OpenAI completions store field type issue
- Cast params to any for store field assignment - Maintains compatibility with providers that don't support store field
This commit is contained in:
parent
550da5e47c
commit
545d04fc5c
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ export class OpenAICompletionsLLM implements LLM<OpenAICompletionsLLMOptions> {
|
|||
|
||||
// Cerebras/xAI dont like the "store" field
|
||||
if (!this.modelInfo.baseUrl?.includes("cerebras.ai") && !this.modelInfo.baseUrl?.includes("api.x.ai")) {
|
||||
(params as any).store = false;
|
||||
params.store = false;
|
||||
}
|
||||
|
||||
if (options?.maxTokens) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue