Remove default models to show empty until real models are retreieved (#5524)

resolves #5505
Fix placeholder
resolves #5503
resolves #5522
This commit is contained in:
Timothy Carambat
2026-04-24 15:13:57 -07:00
committed by GitHub
parent bee383f19d
commit bde72505ff
8 changed files with 12 additions and 50 deletions

View File

@@ -23,7 +23,7 @@ SIG_SALT='salt' # Please generate random string at least 32 chars long.
# LLM_PROVIDER='anthropic'
# ANTHROPIC_API_KEY=sk-ant-xxxx
# ANTHROPIC_MODEL_PREF='claude-2'
# ANTHROPIC_MODEL_PREF='claude-sonnet-4-6'
# ANTHROPIC_CACHE_CONTROL="5m" # Enable prompt caching (5m=5min cache, 1h=1hour cache). Reduces costs and improves speed by caching system prompts.
# LLM_PROVIDER='lmstudio'

View File

@@ -727,7 +727,8 @@ const SystemSettings = {
// Anthropic Keys
AnthropicApiKey: !!process.env.ANTHROPIC_API_KEY,
AnthropicModelPref: process.env.ANTHROPIC_MODEL_PREF || "claude-2",
AnthropicModelPref:
process.env.ANTHROPIC_MODEL_PREF || "claude-sonnet-4-6",
AnthropicCacheControl: process.env.ANTHROPIC_CACHE_CONTROL || "none",
// Gemini Keys

View File

@@ -8,7 +8,7 @@ const { getAnythingLLMUserAgent } = require("../../../../endpoints/utils");
/**
* The agent provider for the Anthropic API.
* By default, the model is set to 'claude-2'.
* By default, the model is set to 'claude-sonnet-4-6'.
*/
class AnthropicProvider extends Provider {
model;
@@ -23,7 +23,7 @@ class AnthropicProvider extends Provider {
"User-Agent": getAnythingLLMUserAgent(),
},
},
model = "claude-3-5-sonnet-20240620",
model = "claude-sonnet-4-6",
} = config;
const client = new Anthropic(options);