There was an error while loading. Please reload this page.
1 parent 6934a95 commit d982e98Copy full SHA for d982e98
2 files changed
.changeset/fluffy-phones-sort.md
@@ -0,0 +1,5 @@
1
+---
2
+'@livekit/agents-plugin-openai': patch
3
4
+
5
+supports string inputs for model parameter
plugins/openai/src/responses/llm.ts
@@ -14,7 +14,7 @@ import OpenAI from 'openai';
14
import type { ChatModels } from '../models.js';
15
16
interface LLMOptions {
17
- model: ChatModels;
+ model: string | ChatModels;
18
apiKey?: string;
19
baseURL?: string;
20
client?: OpenAI;
@@ -140,7 +140,7 @@ export class LLMStream extends llm.LLMStream {
140
modelOptions,
141
strictToolSchema,
142
}: {
143
144
client: OpenAI;
145
chatCtx: llm.ChatContext;
146
toolCtx?: llm.ToolContext;
0 commit comments