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

refactor!: Change push model status type from enum to String #489

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

davidmigloz
Copy link
Owner

@davidmigloz davidmigloz commented Jul 12, 2024

Ollama push model status values are not standarized as enums in the Ollama codebase, instead, they are just messages that are printed in different parts of the codebase. E.g.;

https://github.com/ollama/ollama/blob/e5c65a85df21a78052bb9f46bdb37bf6838644f7/server/images.go#L805-L807

Initially in the ollama_dart client, we made the status field an enum. However, its values were not exhaustive and varied in different versions of Ollama. That's why we decided to change its type to string.

@davidmigloz davidmigloz self-assigned this Jul 12, 2024
@davidmigloz davidmigloz added the p:ollama_dart ollama_dart package. label Jul 12, 2024
@davidmigloz davidmigloz added this to the v0.8.0 milestone Jul 12, 2024
@davidmigloz davidmigloz merged commit 840118f into main Jul 12, 2024
1 check passed
@davidmigloz davidmigloz deleted the ollama-push-model-status branch July 12, 2024 22:05
KennethKnudsen97 pushed a commit to KennethKnudsen97/langchain_dart that referenced this pull request Oct 1, 2024
KennethKnudsen97 pushed a commit to KennethKnudsen97/langchain_dart that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:ollama_dart ollama_dart package.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant