Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: update base URL for Anthropic provider (#5600)

Sam Hoang Van36c2024cb3de
diff --git a/web-app/package.json b/web-app/package.json
index 171966560..d961c80e6 100644
--- a/web-app/package.json
+++ b/web-app/package.json
@@ -66,7 +66,7 @@
"remark-math": "^6.0.0",
"sonner": "^2.0.3",
"tailwindcss": "^4.1.4",
- "token.js": "npm:[email protected]",
+ "token.js": "npm:[email protected]",
"tw-animate-css": "^1.2.7",
"ulidx": "^2.4.1",
"unified": "^11.0.5",
@@ -94,4 +94,4 @@
"vite-plugin-node-polyfills": "^0.23.0",
"vitest": "^3.1.3"
}
-}
+}
\ No newline at end of file
diff --git a/web-app/src/mock/data.ts b/web-app/src/mock/data.ts
index 128ec38da..3610eab97 100644
--- a/web-app/src/mock/data.ts
+++ b/web-app/src/mock/data.ts
@@ -62,7 +62,7 @@ export const predefinedProviders = [
{
active: true,
api_key: '',
- base_url: 'https://api.anthropic.com/v1',
+ base_url: 'https://api.anthropic.com',
provider: 'anthropic',
explore_models_url:
'https://docs.anthropic.com/en/docs/about-claude/models',
@@ -87,8 +87,8 @@ export const predefinedProviders = [
'The base endpoint to use. See the [Anthropic API documentation](https://docs.anthropic.com/en/api/messages) for more information.',
controller_type: 'input',
controller_props: {
- placeholder: 'https://api.anthropic.com/v1',
- value: 'https://api.anthropic.com/v1',
+ placeholder: 'https://api.anthropic.com',
+ value: 'https://api.anthropic.com',
},
},
],