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

Be able to include helicone (https://docs.helicone.ai/quickstart/integrate-in-one-minute) #264

Open
vladzloteanu opened this issue Jun 19, 2023 · 2 comments

Comments

@vladzloteanu
Copy link

Today, there is no explicit way to pass the openapi client.

It would be very cool to be able to define gateway data - to be able to use tools like Helicone, that give explicit details about API usage.
Here is how Helicone integrates: https://docs.helicone.ai/quickstart/integrate-in-one-minute

Unfortunately, there is no consistent way to overide headers everywhere: openai/openai-python#209

@bhy
Copy link
Contributor

bhy commented Jun 21, 2023

For now you can do this:

import helicone
import guidance

# patch guidance
from guidance.llms import _openai
_openai.openai = helicone.openai

@talglobus
Copy link

@bhy Thanks, that should solve the API key, but what about custom properties, which still require custom headers?

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

3 participants