π Feature: Support older version of ollama
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!
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
@minimAluminiumalism , Can you test this out and close the issue as I have fixed it and it's working fine .