Skip to content

Conversation

@zloeber
Copy link

@zloeber zloeber commented Aug 3, 2025

Adds ollama provider based partially on the json data found in https://ollama-models.zwz.workers.dev/

Describe your changes

Ollama's library is really quite lacking in model information. This PR Adds each of the ollama catalog entries with max token and context window length data derived from the library readme data and online sources. Attachment support attribute is based on the readme data (looking for terms like 'vision') and may not be fully accurate. Reasoning model attributes are derived from both the readme data (terms such as 'reasoning') and online sources.

Related issue/discussion: link

Checklist before requesting a review

If this is a feature

  • [] I have created a discussion
  • [] A project maintainer has approved this feature request. Link to comment:

@zloeber
Copy link
Author

zloeber commented Aug 3, 2025

Updated to only include models with the tools tag

//go:embed configs/lambda.json
var lambdaConfig []byte

var ollamaConfig []byte
Copy link
Member

Choose a reason for hiding this comment

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

missing the go:embed comment

Copy link
Member

@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

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

missing go embed, this will not work as is

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