fix quotes
This commit is contained in:
parent
fb3e01981e
commit
6e6cf7830a
2 changed files with 26 additions and 26 deletions
|
|
@ -2,40 +2,40 @@ import {
|
|||
customProvider,
|
||||
extractReasoningMiddleware,
|
||||
wrapLanguageModel,
|
||||
} from "ai";
|
||||
import { openai } from "@ai-sdk/openai";
|
||||
import { fireworks } from "@ai-sdk/fireworks";
|
||||
import { xai } from "@ai-sdk/xai";
|
||||
import { isTestEnvironment } from "../constants";
|
||||
} from 'ai';
|
||||
import { openai } from '@ai-sdk/openai';
|
||||
import { fireworks } from '@ai-sdk/fireworks';
|
||||
import { xai } from '@ai-sdk/xai';
|
||||
import { isTestEnvironment } from '../constants';
|
||||
import {
|
||||
artifactModel,
|
||||
chatModel,
|
||||
reasoningModel,
|
||||
titleModel,
|
||||
} from "./models.test";
|
||||
} from './models.test';
|
||||
|
||||
export const myProvider = isTestEnvironment
|
||||
? customProvider({
|
||||
languageModels: {
|
||||
"chat-model-small": chatModel,
|
||||
"chat-model-large": chatModel,
|
||||
"chat-model-reasoning": reasoningModel,
|
||||
"title-model": titleModel,
|
||||
"artifact-model": artifactModel,
|
||||
'chat-model-small': chatModel,
|
||||
'chat-model-large': chatModel,
|
||||
'chat-model-reasoning': reasoningModel,
|
||||
'title-model': titleModel,
|
||||
'artifact-model': artifactModel,
|
||||
},
|
||||
})
|
||||
: customProvider({
|
||||
languageModels: {
|
||||
"chat-model-small": xai("grok-2-1212"),
|
||||
"chat-model-reasoning": wrapLanguageModel({
|
||||
model: fireworks("accounts/fireworks/models/deepseek-r1"),
|
||||
middleware: extractReasoningMiddleware({ tagName: "think" }),
|
||||
'chat-model-small': xai('grok-2-1212'),
|
||||
'chat-model-reasoning': wrapLanguageModel({
|
||||
model: fireworks('accounts/fireworks/models/deepseek-r1'),
|
||||
middleware: extractReasoningMiddleware({ tagName: 'think' }),
|
||||
}),
|
||||
"title-model": xai("grok-2-1212"),
|
||||
"artifact-model": xai("grok-2-1212"),
|
||||
'title-model': xai('grok-2-1212'),
|
||||
'artifact-model': xai('grok-2-1212'),
|
||||
},
|
||||
imageModels: {
|
||||
"small-model": openai.image("dall-e-2"),
|
||||
"large-model": openai.image("dall-e-3"),
|
||||
'small-model': openai.image('dall-e-2'),
|
||||
'large-model': openai.image('dall-e-3'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue