mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
Use claude-sonnet-4-5-20250929 model name
This commit is contained in:
parent
179874628e
commit
5d57f5bd0f
7 changed files with 7 additions and 7 deletions
|
|
@ -49,7 +49,7 @@ class LoggingAnthropicHandler(AnthropicSamplingHandler):
|
|||
|
||||
mcp = FastMCP(
|
||||
"Server with Fallback",
|
||||
sampling_handler=LoggingAnthropicHandler(default_model="claude-sonnet-4-20250514"),
|
||||
sampling_handler=LoggingAnthropicHandler(default_model="claude-sonnet-4-5-20250929"),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ async def main():
|
|||
)
|
||||
console.print()
|
||||
|
||||
handler = LoggingAnthropicHandler(default_model="claude-sonnet-4-20250514")
|
||||
handler = LoggingAnthropicHandler(default_model="claude-sonnet-4-5-20250929")
|
||||
|
||||
test_texts = [
|
||||
("I love this! Best purchase ever!", "😊"),
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ async def main():
|
|||
)
|
||||
console.print()
|
||||
|
||||
handler = LoggingAnthropicHandler(default_model="claude-sonnet-4-20250514")
|
||||
handler = LoggingAnthropicHandler(default_model="claude-sonnet-4-5-20250929")
|
||||
|
||||
async with Client(mcp, sampling_handler=handler) as client:
|
||||
# Example 1
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ async def main():
|
|||
)
|
||||
console.print()
|
||||
|
||||
handler = LoggingAnthropicHandler(default_model="claude-sonnet-4-20250514")
|
||||
handler = LoggingAnthropicHandler(default_model="claude-sonnet-4-5-20250929")
|
||||
|
||||
questions = [
|
||||
"What's 15% tip on a $47.50 bill?",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue