Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Enhance Anthropic integration with Thinking #2315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apappascs
Copy link
Contributor

@apappascs apappascs commented Feb 25, 2025

  • The thinking option is added to AnthropicChatOptions and ChatCompletionRequest.
  • The AnthropicApi and AnthropicChatModel now handle THINKING and REDACTED_THINKING content blocks in responses. New tests verify parsing of these blocks.
  • Updated method signatures on ChatCompletionRequestBuilder, deprecating old builders with with* prefix in favor of those without.

more details:

to be rebased after this PR is merged: #2314

@apappascs apappascs force-pushed the feature/anthropic-thinking branch 2 times, most recently from 4a25214 to ae4935b Compare February 25, 2025 22:32
- The `thinking` option is added to `AnthropicChatOptions` and `ChatCompletionRequest`.
- The `AnthropicApi` and `AnthropicChatModel` now handle `THINKING` and `REDACTED_THINKING` content blocks in responses.  New tests verify parsing of these blocks.
- Updated method signatures on ChatCompletionRequestBuilder, deprecating old builders with `with*` prefix in favor of those without.

Signed-off-by: Alexandros Pappas <apappascs@gmail.com>
@apappascs apappascs force-pushed the feature/anthropic-thinking branch from ae4935b to 7d387cf Compare February 27, 2025 15:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant