Welcome to Portkey Forum

s
susa
Offline, last seen 3 weeks ago
Joined November 4, 2024
Just realised I posted my other message on the wrong channel so posting back here.
I'm trying to self host the gateway (currently for testing running the server on a local port) and use the Portkey Python SDK to make the chat completions queries.
However while doing this running into an issue :
  1. As suggested here I am passing the base URL as a parameter (in my case http://127.0.0.1:8787) . However to instantiate the SDK object a Portkey API key is required, so I passed a dummy API key
When doing this, I get an error
Plain Text
portkey_ai.api_resources.exceptions.NotFoundError: {"message":"Not Found","ok":false}

Is there something I am doing wrong here?
4 comments
V
s
Heyy sorry for the late response
But I tried this and was still required to enter a Portkey API key. When I tried entering a random key along with the base URL I get this error
Plain Text
portkey_ai.api_resources.exceptions.NotFoundError: {"message":"Not Found","ok":false}

Not sure what exactly I'm doing wrong?
1 comment
V