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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user