Spaces:
Running
Running
Commit
·
6d663cf
1
Parent(s):
86ebeca
refactor: update reasoning middleware and clean up model configurations
Browse files- Changed middleware tag from 'reasoning' to 'think'.
- Removed commented-out configurations for 'grok-3' and 'grok-3-mini' models to streamline the codebase.
- ai/providers.ts +1 -17
ai/providers.ts
CHANGED
@@ -13,13 +13,11 @@ export interface ModelInfo {
|
|
13 |
}
|
14 |
|
15 |
const middleware = extractReasoningMiddleware({
|
16 |
-
tagName: '
|
17 |
separator: '\n',
|
18 |
});
|
19 |
|
20 |
const languageModels = {
|
21 |
-
// "grok-3": xai("grok-3-latest"),
|
22 |
-
// "grok-3-mini": xai("grok-3-mini-fast-latest"),
|
23 |
"gpt-4.1-mini": openai("gpt-4.1-mini"),
|
24 |
"gemini-2-flash": google("gemini-2.0-flash-001"),
|
25 |
"qwen-qwq": wrapLanguageModel(
|
@@ -32,20 +30,6 @@ const languageModels = {
|
|
32 |
};
|
33 |
|
34 |
export const modelDetails: Record<keyof typeof languageModels, ModelInfo> = {
|
35 |
-
// "grok-3": {
|
36 |
-
// provider: "xAI",
|
37 |
-
// name: "Grok-3",
|
38 |
-
// description: "Latest version of xAI's flagship model with strong reasoning and coding capabilities.",
|
39 |
-
// apiVersion: "grok-3-latest",
|
40 |
-
// capabilities: ["Balance", "Efficient", "Agentic"]
|
41 |
-
// },
|
42 |
-
// "grok-3-mini": {
|
43 |
-
// provider: "xAI",
|
44 |
-
// name: "Grok-3 Mini",
|
45 |
-
// description: "Fast, efficient and smaller xAI model with reasoning capabilities.",
|
46 |
-
// apiVersion: "grok-3-mini-fast-latest",
|
47 |
-
// capabilities: ["Fast","Reasoning", "Efficient"]
|
48 |
-
// },
|
49 |
"gpt-4.1-mini": {
|
50 |
provider: "OpenAI",
|
51 |
name: "GPT-4.1 Mini",
|
|
|
13 |
}
|
14 |
|
15 |
const middleware = extractReasoningMiddleware({
|
16 |
+
tagName: 'think',
|
17 |
separator: '\n',
|
18 |
});
|
19 |
|
20 |
const languageModels = {
|
|
|
|
|
21 |
"gpt-4.1-mini": openai("gpt-4.1-mini"),
|
22 |
"gemini-2-flash": google("gemini-2.0-flash-001"),
|
23 |
"qwen-qwq": wrapLanguageModel(
|
|
|
30 |
};
|
31 |
|
32 |
export const modelDetails: Record<keyof typeof languageModels, ModelInfo> = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
"gpt-4.1-mini": {
|
34 |
provider: "OpenAI",
|
35 |
name: "GPT-4.1 Mini",
|