Skip to content

Commit a749b1b

Browse files
committed
Docs: update Anthropic list of supported models
1 parent feb0020 commit a749b1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions/anthropic-chat-functions.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
= Anthropic Function Calling
22

3+
TIP: Starting of Jul 1th, 2024, streaming function calling and Tool use is supporetd.
4+
35
You can register custom Java functions with the `AnthropicChatModel` and have the Anthropic models intelligently choose to output a JSON object containing arguments to call one or many of the registered functions.
46
This allows you to connect the LLM capabilities with external tools and APIs.
5-
The `claude-3-opus`, `claude-3-sonnet` and `claude-3-haiku` link:https://docs.anthropic.com/claude/docs/tool-use#tool-use-best-practices-and-limitations[models are trained to detect when a function should be called] and to respond with JSON that adheres to the function signature.
7+
The `claude-3-5-sonnet-20240620`, `claude-3-opus`, `claude-3-sonnet` and `claude-3-haiku` link:https://docs.anthropic.com/claude/docs/tool-use#tool-use-best-practices-and-limitations[models are trained to detect when a function should be called] and to respond with JSON that adheres to the function signature.
68

79
The Anthropic API does not call the function directly; instead, the model generates JSON that you can use to call the function in your code and return the result back to the model to complete the conversation.
810

9-
NOTE: As of April 4th, 2024, streaming is not yet supported for function calling and Tool use is not yet available on third-party platforms like Vertex AI or AWS Bedrock, but is coming soon.
10-
1111
Spring AI provides flexible and user-friendly ways to register and call custom functions.
1212
In general, the custom functions need to provide a function `name`, `description`, and the function call `signature` (as JSON schema) to let the model know what arguments the function expects.
1313
The `description` helps the model to understand when to call the function.

0 commit comments

Comments
 (0)