We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea730ba commit d017452Copy full SHA for d017452
web/src/app/api/v1/chat/completions/_post.ts
@@ -207,8 +207,7 @@ export async function postChatCompletions(params: {
207
// Streaming request
208
const model = (body as any)?.model
209
const isOpenAIDirectModel =
210
- typeof model === 'string' &&
211
- (!model.includes('/') || model.startsWith('openai/'))
+ typeof model === 'string' && model.startsWith('openai/')
212
const stream = await (isOpenAIDirectModel
213
? handleOpenAIStream({
214
body,
0 commit comments