1
Follow useinstructor.com to get setup with Instructor's JS SDK.
2
Modify the base url and add a Helicone-Auth header
3
Call OpenAI using Instructor and see the logs on Helicone.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Instructor’s Python SDK to log your LLM calls in Helicone.
Follow useinstructor.com to get setup with Instructor's JS SDK.
Modify the base url and add a Helicone-Auth header
client = instructor.from_openai(OpenAI(
base_url="https://oai.helicone.ai/v1",
api_key=OPENAI_API_KEY,
default_headers={
"Helicone-Auth": "Bearer " + HELICONE_API_KEY
}
))
Call OpenAI using Instructor and see the logs on Helicone.
Was this page helpful?