Ollama
Ollama Javascript Integration
Use Helicone’s JavaScript SDK to log your Ollama usage.
Using the Helicone SDK (recommended)
Walkthrough: logging chat completions
1
To get started, install the `@helicone/helpers` package
2
Setup the logger
3
Call your LLM and log the request
4
Go to the Helicone Requests page and see your request!
Example: logging completion request
The above example uses phi3:mini
model and the Chat Completion
interface. The same can be done with a regular completion
request:
Resources
- See Logging Custom Models to learn how to log any model.
- Ollama API Reference
Was this page helpful?