Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: reduce the throttle
Louis904860f99d30
diff --git a/web-app/src/constants/providers.ts b/web-app/src/constants/providers.tsindex 630c0efa7..868912e5b 100644--- a/web-app/src/constants/providers.ts+++ b/web-app/src/constants/providers.ts@@ -138,40 +138,6 @@ export const predefinedProviders = [}]},- {- active: true,- api_key: '',- base_url: 'https://api.cohere.ai/v1',- explore_models_url: 'https://docs.cohere.com/v2/docs/models',- provider: 'cohere',- settings: [- {- key: 'api-key',- title: 'API Key',- description:- "The Cohere API uses API keys for authentication. Visit your [API Keys](https://dashboard.cohere.com/api-keys) page to retrieve the API key you'll use in your requests.",- controller_type: 'input',- controller_props: {- placeholder: 'Insert API Key',- value: '',- type: 'password',- input_actions: ['unobscure', 'copy'],- },- },- {- key: 'base-url',- title: 'Base URL',- description:- 'The base OpenAI-compatible endpoint to use. See the [Cohere documentation](https://docs.cohere.com/docs/compatibility-api) for more information.',- controller_type: 'input',- controller_props: {- placeholder: 'https://api.cohere.ai/compatibility/v1',- value: 'https://api.cohere.ai/compatibility/v1',- },- },- ],- models: [],- },{active: true,api_key: '',diff --git a/web-app/src/hooks/useModelProvider.ts b/web-app/src/hooks/useModelProvider.tsindex 3db51514b..d0c348567 100644--- a/web-app/src/hooks/useModelProvider.ts+++ b/web-app/src/hooks/useModelProvider.ts@@ -444,11 +444,6 @@ export const useModelProvider = create<ModelProviderState>()(}})}- if (version <= 6 && state?.providers) {- // Most of legacy cohere models are deprecated now, remove the provider entirely- // TODO: Default providers should be updated automatically somehow later- state.providers = state.providers.filter((provider) => provider.provider !== 'cohere')- }if (version <= 7 && state?.providers) {// Remove 'proactive' capability from all models as it's now managed in MCP settingsstate.providers.forEach((provider) => {@@ -494,9 +489,15 @@ export const useModelProvider = create<ModelProviderState>()(}})}++ if (version <= 9 && state?.providers) {+ state.providers = state.providers.filter(+ (provider) => provider.provider !== 'cohere'+ )+ }return state},- version: 9,+ version: 10,}))diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsxindex 7cd7e1e83..6acfb8167 100644--- a/web-app/src/routes/threads/$threadId.tsx+++ b/web-app/src/routes/threads/$threadId.tsx@@ -132,7 +132,7 @@ function ThreadDetail() {sessionId: threadId,sessionTitle: thread?.title,systemMessage,- experimental_throttle: 100,+ experimental_throttle: 50,onFinish: ({ message, isAbort }) => {// Persist assistant message to backend (skip if aborted)if (!isAbort && message.role === 'assistant') {