Closed younes-ammari closed 3 months ago
There is an extra /
in your URL. I'm not sure how that happened. What version of the sdk are you using?
React Native adds that extra /
in, and is accordingly not officially supported (as documented in the README). Things should work with a polyfill like this one: https://github.com/acostalima/react-native-polyfill-globals (however, file uploads still won't work).
@younes-ammari Were you able to resolve this issue with the above? 👀
I'm trying to use Groq in my React Native application I installed the latest groq-sdk but i keep getting this error when i used groq-sdk
[Error: 404 {"error":{"message":"Unknown request URL: POST /openai/v1/chat/completions/. Please check the URL for typos, or see the docs at https://console.groq.com/docs/","type":"invalid_request_error","code":"unknown_url"}}]
here is my code: