Helicone Community Page

Updated 2 months ago

Together AI Python Issue

Hi,
I'm using Python,
Did anyone work with Together client with base url?
it seems to not show up on my dashboard at all.
but i get the results back from the model.

Plain Text
 together_client = Together(
    api_key=together_api_key,
    # base_url="https://together.helicone.ai/v1",
    # default_headers={
    #     "Helicone-Auth": f"Bearer {helicone_api_key}",
    # },
)

i switched to the Together client as it didn't work but tried to use this code :
Plain Text
client = OpenAI(
  api_key="your-api-key-here",  # Replace with your OpenAI API key
  base_url="https://together.helicone.ai/v1"
  default_headers= {  # Optionally set default headers or set per request (see below)
    "Helicone-Auth": f"Bearer {HELICONE_API_KEY}",
  }
)
K
2 comments
Hey, were you able to get this working? The code seems to be accurate. I would suggest double checking your api key

If you're using the Together client you have to send supplied_headers and not default_headers as so
Attachment
image.png
Together AI Python Issue
Add a reply
Sign up and join the conversation on Discord