Skip to main content
Helicone OSS LLM Observability

Ollama Javascript Integration

Use Helicone's JavaScript SDK to log your Ollama usage.
1 min read
Warning

This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new AI Gateway with unified API access to 100+ models.

Using the Helicone SDK (recommended)#

Walkthrough: logging chat completions#

To get started, install the `@helicone/helpers` package

Setup the logger

Call your LLM and log the request

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#