rtvi-ai / rtvi-infra-examples

Example backend infrastructure for launching new bots that connect to your RTVI clients.
19 stars 10 forks source link

using correct API key instead saying invalid API key #3

Open connectappypiellp opened 1 month ago

connectappypiellp commented 1 month ago
Screenshot 2024-07-29 at 10 21 42 AM

I have used the correct Open api key starting with sk-8d***** i have also tested it but it saying inavlid api key

Screenshot 2024-07-29 at 10 22 41 AM

Also tried defining directly into model code but still the same issue One more thing if you can help me if i change model id and name to gpt-4 dose it will be ok Your help will be appreciated

connectappypiellp commented 1 month ago

@jptaylor if you can help

sajkamal commented 1 month ago

you can use groq cloud api and it will work

denisefan28 commented 1 week ago

Hi @connectappypiellp , I have the same issue as you shown above. pipecat == 0.3.0 The default url is set to "https://api.groq.com/openai/v1". Screenshot 2024-09-07 at 10 39 02 PM

That's why groq cloud api works. The latest pipecat code seems already removed the default url. https://github.com/pipecat-ai/pipecat/blob/main/src/pipecat/processors/frameworks/rtvi.py#L270 I think we can try to install the latest code to test it.