mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-19 13:45:47 -04:00
chore(llms): refresh default models to current generations
anthropic: claude-sonnet-4-5 -> claude-sonnet-5 (note: Sonnet 5 rejects non-default sampling params, so callers that relied on the default model while setting a custom temperature must now pick a model explicitly); openai: gpt-4.1-mini -> gpt-5.4-mini (same efficiency tier); googleai: gemini-2.0-flash -> gemini-2.5-flash (staying on the thinkingBudget-compatible generation until thinking_level support lands). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
const (
|
||||
DefaultBaseURL = "https://api.anthropic.com/v1"
|
||||
|
||||
defaultModel = "claude-sonnet-4-5"
|
||||
defaultModel = "claude-sonnet-5"
|
||||
)
|
||||
|
||||
// ErrEmptyResponse is returned when the Anthropic API returns an empty response.
|
||||
|
||||
@@ -88,7 +88,7 @@ func TestDefaultOptions(t *testing.T) {
|
||||
|
||||
opts := DefaultOptions()
|
||||
|
||||
assert.Equal(t, "gemini-2.0-flash", opts.DefaultModel)
|
||||
assert.Equal(t, "gemini-2.5-flash", opts.DefaultModel)
|
||||
assert.Equal(t, "gemini-embedding-001", opts.DefaultEmbeddingModel)
|
||||
assert.Equal(t, 1, opts.DefaultCandidateCount)
|
||||
assert.Equal(t, 2048, opts.DefaultMaxTokens)
|
||||
|
||||
@@ -34,7 +34,7 @@ func DefaultOptions() Options {
|
||||
return Options{
|
||||
CloudProject: "",
|
||||
CloudLocation: "",
|
||||
DefaultModel: "gemini-2.0-flash",
|
||||
DefaultModel: "gemini-2.5-flash",
|
||||
DefaultEmbeddingModel: "gemini-embedding-001",
|
||||
DefaultCandidateCount: 1,
|
||||
DefaultMaxTokens: 2048,
|
||||
|
||||
@@ -19,8 +19,8 @@ func TestDefaultOptions(t *testing.T) {
|
||||
opts := googleai.DefaultOptions()
|
||||
|
||||
// Test default values
|
||||
if opts.DefaultModel != "gemini-2.0-flash" {
|
||||
t.Errorf("expected default model 'gemini-2.0-flash', got %q", opts.DefaultModel)
|
||||
if opts.DefaultModel != "gemini-2.5-flash" {
|
||||
t.Errorf("expected default model 'gemini-2.5-flash', got %q", opts.DefaultModel)
|
||||
}
|
||||
if opts.DefaultEmbeddingModel != "gemini-embedding-001" {
|
||||
t.Errorf("expected default embedding model 'gemini-embedding-001', got %q", opts.DefaultEmbeddingModel)
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
defaultChatModel = "gpt-4.1-mini"
|
||||
defaultChatModel = "gpt-5.4-mini"
|
||||
)
|
||||
|
||||
var ErrContentExclusive = errors.New("only one of Content / MultiContent allowed in message")
|
||||
|
||||
Reference in New Issue
Block a user