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

ollama ChatRequest's Format changed from string to json.RawMessage #125

Open
XIELongDragon opened this issue Feb 26, 2025 · 0 comments
Open

Comments

@XIELongDragon
Copy link

XIELongDragon commented Feb 26, 2025

Describe the bug

ollama v0.5.12 already changed the type of Format within ChatRequest's to json.RawMessage, (ref: https://github.com/ollama/ollama/blob/main/api/types.go#L99)

which will cause compatibility issues as eino uses type string for Format
https://github.com/cloudwego/eino-ext/blob/main/components/model/ollama/chatmodel.go#L276

To Reproduce
Upgrade Ollama to v0.5.12

**Suggestion"

  1. follow the ollama's change
  2. add go.mod file in the project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant