fix: types error
This commit is contained in:
@@ -72,7 +72,7 @@ export function getAnthropicModel(params: GetModelParams): BaseLanguageModel | n
|
||||
}
|
||||
})
|
||||
|
||||
return chatAnthropic
|
||||
return chatAnthropic as unknown as InstanceType<typeof ChatAnthropic>
|
||||
}
|
||||
|
||||
return null
|
||||
|
||||
@@ -30,7 +30,7 @@ export default defineConfig(async () => {
|
||||
customDistPath() {
|
||||
return resolvePath('../dist/browser/monaco-editor')
|
||||
},
|
||||
}),
|
||||
}) as any,
|
||||
],
|
||||
build: {
|
||||
outDir: resolvePath('../dist/browser'),
|
||||
|
||||
@@ -73,14 +73,14 @@
|
||||
"stub": "unbuild --stub"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hookform/resolvers": "^3.1.1",
|
||||
"@hookform/resolvers": "^3.2.0",
|
||||
"@kvs/node-localstorage": "^2.1.5",
|
||||
"@kvs/storage": "^2.1.4",
|
||||
"@microsoft/fetch-event-source": "^2.0.1",
|
||||
"@monaco-editor/react": "^4.5.1",
|
||||
"@nicepkg/gpt-runner-core": "workspace:*",
|
||||
"@nicepkg/gpt-runner-shared": "workspace:*",
|
||||
"@tanstack/react-query": "^4.32.5",
|
||||
"@tanstack/react-query": "^4.32.6",
|
||||
"@types/connect-history-api-fallback": "^1.5.0",
|
||||
"@types/cors": "^2.8.13",
|
||||
"@types/express": "^4.17.17",
|
||||
@@ -104,7 +104,7 @@
|
||||
"framer-motion": "^10.15.0",
|
||||
"fs-extra": "^11.1.1",
|
||||
"global-agent": "^3.0.0",
|
||||
"i18next": "^23.4.1",
|
||||
"i18next": "^23.4.2",
|
||||
"i18next-browser-languagedetector": "^7.1.0",
|
||||
"i18next-http-backend": "^2.2.1",
|
||||
"js-base64": "^3.7.5",
|
||||
@@ -114,7 +114,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-error-boundary": "^4.0.10",
|
||||
"react-hook-form": "^7.45.2",
|
||||
"react-hook-form": "^7.45.4",
|
||||
"react-hot-toast": "^2.4.1",
|
||||
"react-i18next": "^13.0.3",
|
||||
"react-markdown": "^8.0.7",
|
||||
@@ -131,6 +131,6 @@
|
||||
"vite-plugin-monaco-editor": "^1.1.0",
|
||||
"vite-plugin-svgr": "^3.2.0",
|
||||
"web-streams-polyfill": "^3.2.1",
|
||||
"zustand": "^4.4.0"
|
||||
"zustand": "^4.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user