openllmetry icon indicating copy to clipboard operation
openllmetry copied to clipboard

πŸš€ Feature: Support older version of ollama

Open minimAluminiumalism opened this issue 4 months ago β€’ 1 comments

Which component is this feature for?

Ollama Instrumentation

πŸ”– Feature description

https://github.com/traceloop/openllmetry/blob/335bc2e29a58b4595fbd3ec58d457735459f7d50/packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/init.py#L43

Now the ollama instrumentation currently only works with Ollama versionβ€―0.4.0 and later. Maybe we could make it compatible with older versions of it? @nirga

🎀 Why is this feature needed ?

Support for older verisons of ollama.

✌️ How do you aim to achieve this?

The implementation is similar to that of the new version of Ollama.

πŸ”„οΈ Additional Information

No response

πŸ‘€ Have you spent some time to check if this feature request has been raised before?

  • [x] I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

minimAluminiumalism avatar Aug 19 '25 09:08 minimAluminiumalism

Sure we can try relaxing the >= 0.4.0 - Ideally it will just work and won't require ugly if else to support multiple different APIs

nirga avatar Aug 19 '25 11:08 nirga

@minimAluminiumalism , Can you test this out and close the issue as I have fixed it and it's working fine .

elinacse avatar Dec 09 '25 05:12 elinacse