Skip to content

Commit 56a69ac

Browse files
committed
fix: types error
1 parent d64fa5c commit 56a69ac

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/gpt-runner-core/src/langchain/chains/models/anthropic.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function getAnthropicModel(params: GetModelParams): BaseLanguageModel | n
7272
}
7373
})
7474

75-
return chatAnthropic
75+
return chatAnthropic as unknown as InstanceType<typeof ChatAnthropic>
7676
}
7777

7878
return null

packages/gpt-runner-web/client/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineConfig(async () => {
3030
customDistPath() {
3131
return resolvePath('../dist/browser/monaco-editor')
3232
},
33-
}),
33+
}) as any,
3434
],
3535
build: {
3636
outDir: resolvePath('../dist/browser'),

packages/gpt-runner-web/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
"stub": "unbuild --stub"
7474
},
7575
"devDependencies": {
76-
"@hookform/resolvers": "^3.1.1",
76+
"@hookform/resolvers": "^3.2.0",
7777
"@kvs/node-localstorage": "^2.1.5",
7878
"@kvs/storage": "^2.1.4",
7979
"@microsoft/fetch-event-source": "^2.0.1",
8080
"@monaco-editor/react": "^4.5.1",
8181
"@nicepkg/gpt-runner-core": "workspace:*",
8282
"@nicepkg/gpt-runner-shared": "workspace:*",
83-
"@tanstack/react-query": "^4.32.5",
83+
"@tanstack/react-query": "^4.32.6",
8484
"@types/connect-history-api-fallback": "^1.5.0",
8585
"@types/cors": "^2.8.13",
8686
"@types/express": "^4.17.17",
@@ -104,7 +104,7 @@
104104
"framer-motion": "^10.15.0",
105105
"fs-extra": "^11.1.1",
106106
"global-agent": "^3.0.0",
107-
"i18next": "^23.4.1",
107+
"i18next": "^23.4.2",
108108
"i18next-browser-languagedetector": "^7.1.0",
109109
"i18next-http-backend": "^2.2.1",
110110
"js-base64": "^3.7.5",
@@ -114,7 +114,7 @@
114114
"react": "^18.2.0",
115115
"react-dom": "^18.2.0",
116116
"react-error-boundary": "^4.0.10",
117-
"react-hook-form": "^7.45.2",
117+
"react-hook-form": "^7.45.4",
118118
"react-hot-toast": "^2.4.1",
119119
"react-i18next": "^13.0.3",
120120
"react-markdown": "^8.0.7",
@@ -131,6 +131,6 @@
131131
"vite-plugin-monaco-editor": "^1.1.0",
132132
"vite-plugin-svgr": "^3.2.0",
133133
"web-streams-polyfill": "^3.2.1",
134-
"zustand": "^4.4.0"
134+
"zustand": "^4.4.1"
135135
}
136136
}

0 commit comments

Comments
 (0)