mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
chore: update model references to Claude 4.6 and GPT-5.2
- Claude Opus 4.5 → Opus 4.6, Claude Sonnet 4.5 → Sonnet 4.6 (Haiku stays 4.5) - Update claude-sonnet-4-5 model IDs to claude-sonnet-4-6 in code examples - Update SWE-bench stat from 80.9% to 80.8% for Opus 4.6 - Update GPT refs: GPT-5 → GPT-5.2, GPT-4o → gpt-5.2, GPT-4o-mini → GPT-5-mini - Fix GPT-5.2-mini → GPT-5-mini (correct model name per OpenAI) - Bump marketplace to v1.5.2 and affected plugin versions
This commit is contained in:
@@ -81,7 +81,7 @@ class SQLQuery(BaseModel):
|
||||
tables_used: list[str] = Field(description="List of tables referenced")
|
||||
|
||||
# Initialize model with structured output
|
||||
llm = ChatAnthropic(model="claude-sonnet-4-5")
|
||||
llm = ChatAnthropic(model="claude-sonnet-4-6")
|
||||
structured_llm = llm.with_structured_output(SQLQuery)
|
||||
|
||||
# Create prompt template
|
||||
@@ -124,7 +124,7 @@ async def analyze_sentiment(text: str) -> SentimentAnalysis:
|
||||
client = Anthropic()
|
||||
|
||||
message = client.messages.create(
|
||||
model="claude-sonnet-4-5",
|
||||
model="claude-sonnet-4-6",
|
||||
max_tokens=500,
|
||||
messages=[{
|
||||
"role": "user",
|
||||
@@ -427,7 +427,7 @@ client = Anthropic()
|
||||
|
||||
# Use prompt caching for repeated system prompts
|
||||
response = client.messages.create(
|
||||
model="claude-sonnet-4-5",
|
||||
model="claude-sonnet-4-6",
|
||||
max_tokens=1000,
|
||||
system=[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user