Restore Ultracite + fix sidebar (#1233)
This commit is contained in:
parent
8fbfc253fa
commit
947ed094a6
177 changed files with 6908 additions and 8306 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { gateway } from "@ai-sdk/gateway";
|
||||
import {
|
||||
customProvider,
|
||||
extractReasoningMiddleware,
|
||||
wrapLanguageModel,
|
||||
} from 'ai';
|
||||
import { gateway } from '@ai-sdk/gateway';
|
||||
import { isTestEnvironment } from '../constants';
|
||||
} from "ai";
|
||||
import { isTestEnvironment } from "../constants";
|
||||
|
||||
export const myProvider = isTestEnvironment
|
||||
? (() => {
|
||||
|
|
@ -13,24 +13,24 @@ export const myProvider = isTestEnvironment
|
|||
chatModel,
|
||||
reasoningModel,
|
||||
titleModel,
|
||||
} = require('./models.mock');
|
||||
} = require("./models.mock");
|
||||
return customProvider({
|
||||
languageModels: {
|
||||
'chat-model': chatModel,
|
||||
'chat-model-reasoning': reasoningModel,
|
||||
'title-model': titleModel,
|
||||
'artifact-model': artifactModel,
|
||||
"chat-model": chatModel,
|
||||
"chat-model-reasoning": reasoningModel,
|
||||
"title-model": titleModel,
|
||||
"artifact-model": artifactModel,
|
||||
},
|
||||
});
|
||||
})()
|
||||
: customProvider({
|
||||
languageModels: {
|
||||
'chat-model': gateway.languageModel('xai/grok-2-vision-1212'),
|
||||
'chat-model-reasoning': wrapLanguageModel({
|
||||
model: gateway.languageModel('xai/grok-3-mini'),
|
||||
middleware: extractReasoningMiddleware({ tagName: 'think' }),
|
||||
"chat-model": gateway.languageModel("xai/grok-2-vision-1212"),
|
||||
"chat-model-reasoning": wrapLanguageModel({
|
||||
model: gateway.languageModel("xai/grok-3-mini"),
|
||||
middleware: extractReasoningMiddleware({ tagName: "think" }),
|
||||
}),
|
||||
'title-model': gateway.languageModel('xai/grok-2-1212'),
|
||||
'artifact-model': gateway.languageModel('xai/grok-2-1212'),
|
||||
"title-model": gateway.languageModel("xai/grok-2-1212"),
|
||||
"artifact-model": gateway.languageModel("xai/grok-2-1212"),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue