Skip to content
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

[16.0][FIX] llm_ollama: ollama_models #35

Conversation

CristianoMafraJunior
Copy link
Contributor

PR discussed in Issue #33
fixing the import of ollama models

cc @ayushin @adar2378 @peterromao

Verified

This commit was signed with the committer’s verified signature.
ElliotFriend Elliot Voris
@@ -68,18 +70,22 @@ def ollama_models(self):
for model in response.get("models", []):
# Basic model info
model_info = {
"name": model["name"],
"name": model.get("model", ""),
Copy link
Contributor

Choose a reason for hiding this comment

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

@CristianoMafraJunior Hi, thank you for the lovely PR. I see in Ollama's doc that there is no key for model; rather, they return name.
https://github.com/ollama/ollama/blob/main/docs/api.md#response-25

Could you briefly let us know about your findings regarding this fix with docker?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@CristianoMafraJunior Hi, thank you for the lovely PR. I see in Ollama's doc that there is no key for model; rather, they return name. https://github.com/ollama/ollama/blob/main/docs/api.md#response-25

Could you briefly let us know about your findings regarding this fix with docker?

@adar2378 Everything we discovered running ollama on Docker is here in the issue #33 . Unfortunately, it doesn't bring the name information, but I will investigate this further.

Copy link
Contributor

Choose a reason for hiding this comment

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

@CristianoMafraJunior maybe try to get name or model or "" as failsafe?

@CristianoMafraJunior CristianoMafraJunior marked this pull request as draft March 26, 2025 18:29
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.

None yet

3 participants