Skip to content

Commit d982e98

Browse files
authored
(openai responses): add string to type for models (#1068)
1 parent 6934a95 commit d982e98

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/fluffy-phones-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import OpenAI from 'openai';
1414
import type { ChatModels } from '../models.js';
1515

1616
interface LLMOptions {
17-
model: ChatModels;
17+
model: string | ChatModels;
1818
apiKey?: string;
1919
baseURL?: string;
2020
client?: OpenAI;
@@ -140,7 +140,7 @@ export class LLMStream extends llm.LLMStream {
140140
modelOptions,
141141
strictToolSchema,
142142
}: {
143-
model: ChatModels;
143+
model: string | ChatModels;
144144
client: OpenAI;
145145
chatCtx: llm.ChatContext;
146146
toolCtx?: llm.ToolContext;

0 commit comments

Comments
 (0)