Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to integrate observability tools like Helicone/Vellum? #935

Closed
sgondala opened this issue Jun 2, 2024 · 1 comment
Closed

Comments

@sgondala
Copy link

sgondala commented Jun 2, 2024

Is there a way to integrate observability tools like Helicone?

Steps to integrate these are by changing OpenAI's base URL and headers

client = OpenAI(
  api_key="your-api-key-here",  # Replace with your OpenAI API key
  base_url="https://oai.hconeai.com/v1",  # Set the API endpoint
  default_headers= {  # Optionally set default headers or set per request (see below)
    "Helicone-Auth": f"Bearer {HELICONE_API_KEY}",
  }
)

I couldn't find a way to do this in marvin as the opeani client isn't exposed

@zzstoatzz
Copy link
Collaborator

zzstoatzz commented Jun 14, 2024

hi @sgondala

all the the main functions like fn, cast, extract etc accept a client in the decorator kwargs like this

if there's a place where you can't pass it through and would like to, let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants