mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
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:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user