Skip to content

An AI-powered search engine with a generative UI

fix: resolve type errors and format code

Yoshiki Miuracc1f2802f13c
diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts
index e24f5eb6..ff691a11 100644
--- a/app/api/chat/route.ts
+++ b/app/api/chat/route.ts
@@ -11,9 +11,7 @@ const DEFAULT_MODEL: Model = {
id: 'gpt-4o-mini',
name: 'GPT-4o mini',
provider: 'OpenAI',
- providerId: 'openai',
- enabled: true,
- toolCallType: 'native'
+ providerId: 'openai'
}
export async function POST(req: Request) {
diff --git a/lib/config/default-models.json b/lib/config/default-models.json
index 9e2426a6..984172b4 100644
--- a/lib/config/default-models.json
+++ b/lib/config/default-models.json
@@ -56,4 +56,3 @@
}
]
}
-
diff --git a/lib/types/models.ts b/lib/types/models.ts
index 78c3b7e5..a06c9906 100644
--- a/lib/types/models.ts
+++ b/lib/types/models.ts
@@ -4,4 +4,3 @@ export interface Model {
provider: string
providerId: string
}
-
diff --git a/lib/utils/__tests__/context-window.test.ts b/lib/utils/__tests__/context-window.test.ts
index 4b17ec45..94ab8885 100644
--- a/lib/utils/__tests__/context-window.test.ts
+++ b/lib/utils/__tests__/context-window.test.ts
@@ -14,9 +14,7 @@ describe('context-window', () => {
id: 'gpt-4o-mini',
name: 'GPT-4o mini',
provider: 'OpenAI',
- providerId: 'openai',
- enabled: true,
- toolCallType: 'native'
+ providerId: 'openai'
}
const createMessage = (
diff --git a/lib/utils/registry.ts b/lib/utils/registry.ts
index 28a1f846..5aa31fe4 100644
--- a/lib/utils/registry.ts
+++ b/lib/utils/registry.ts
@@ -42,4 +42,3 @@ export function isProviderEnabled(providerId: string): boolean {
return false
}
}
-
diff --git a/public/config/models.json b/public/config/models.json
index 9e2426a6..984172b4 100644
--- a/public/config/models.json
+++ b/public/config/models.json
@@ -56,4 +56,3 @@
}
]
}
-