8000 Fix ollama provider error. by knaou · Pull Request #1344 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content

Fix ollama provider error. #1344

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix ollama provider error. #1344

wants to merge 2 commits into from

Conversation

knaou
Copy link
@knaou knaou commented Jun 12, 2025

The fix for #376 was insufficient, so I've made corrections on my end.
I kept the originally failing code unchanged and only replaced the adk-python module with my fixed version, and confirmed that it works as intended.

Copy link
google-cla bot commented Jun 12, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Refactor user message handling in `_content_to_message_param`
Moved the user message return logic to occur after processing content parts. This ensures `final_content` is consistently used for both user and assistant/model roles, improving code clarity and data integrity.

Fixes google#642, google#928, google#376
@knaou knaou force-pushed the fix_ollama_error branch from 9e44ea0 to a0e07b1 Compare June 12, 2025 09:59
Copy link
@Mustafiz48 Mustafiz48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runs OK, Tested with Ollama on local machine

@knaou knaou requested a review from Mustafiz48 June 19, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0