Skip to content

Commit

Permalink
fix: types error
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Aug 7, 2023
1 parent d64fa5c commit 56a69ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function getAnthropicModel(params: GetModelParams): BaseLanguageModel | n
}
})

return chatAnthropic
return chatAnthropic as unknown as InstanceType<typeof ChatAnthropic>
}

return null
Expand Down
2 changes: 1 addition & 1 deletion packages/gpt-runner-web/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig(async () => {
customDistPath() {
return resolvePath('../dist/browser/monaco-editor')
},
}),
}) as any,
],
build: {
outDir: resolvePath('../dist/browser'),
Expand Down
10 changes: 5 additions & 5 deletions packages/gpt-runner-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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"
}
}

0 comments on commit 56a69ac

Please sign in to comment.