Helicone Community Page

Updated 4 months ago

I am getting 404 error with OpenRouter

When I try to integrate Helicone with an openrouter call I get 404 Error.

Response:
{
"body": {
"error": "error parsing response, SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON, <!DOCTYPE html><html

Probably is something wrong I wrote in my config?
Attachment
image.png
1
S
a
C
7 comments
I'm getting the same error. Would be curious if anyone has fixed this.
any ideas here? the integration config seems ok. what is the org name you are using? feel free to DM us

and
A 404 means it is not able to find the resource. It is likely whatever the url is we are forwarding to in incorrect.

Please try this:
basePath: "https://gateway.hconeai.com/api/v1"
Helicone-Target-Url: "https://openrouter.ai"
Ah, that's it, needed the api/v1 for base path. Thanks!
Added some docs to help people out in the future: https://docs.helicone.ai/getting-started/integration-method/openrouter

Would someone mind just giving this a quick pass?
Add a reply
Sign up and join the conversation on Discord