-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Adding a ThinkingBlock among content blocks #19919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
llama-index-integrations/llms/llama-index-llms-anthropic/llama_index/llms/anthropic/base.py
Show resolved
Hide resolved
...-index-integrations/llms/llama-index-llms-google-genai/llama_index/llms/google_genai/base.py
Show resolved
Hide resolved
...index-integrations/llms/llama-index-llms-google-genai/llama_index/llms/google_genai/utils.py
Show resolved
Hide resolved
llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/responses.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems pretty good to me. I think two follow-up APIs would be
- bedrock
- ollama
I think in the future to, I might add a .content_delta param to the ChatResponse object, but thats also for another day 😁
…evX improvement in Anthropic by automatically setting temperature to 1 if thinking detected
|
@logan-markewich Just as a little DevX improvement, I added a check in Anthropic that automatically sets temperature to 1 if thinking is enabled :)) |
* wip: add thinking block * ci: lint * feat: add/modify tests * feat: add thinking block handling also as input * fix: fixes for Gemini message merging; ci: tests tests tests * chore: add support for ThinkingBlock also in OpenAI streaming; fix: DevX improvement in Anthropic by automatically setting temperature to 1 if thinking detected * fix: add correct support for thinking in OpenAIResponses streaming * fix: fix test and streaming * chore: vbump (minor)
Adding a thinking block and support for it (input/output) in:
Edit: