Api version to initialize OpenAI Backend #575
Closed
papayalabs
started this conversation in
General
Replies: 2 comments 10 replies
-
Did you try it by creating a new API Service in Settings for Perplexity and putting in that URL? It should use it without tacking on 'v1/`. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Yes @mattlindsey , I think there are this 2 options: 1._ 'Blank API version' checkbox (checked for Perplexity or any other API Service with this configuration ) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now when OpenAI is initialized, there is no option to pass the api_version, so when the api url is passed, for example
https://api.openai.com/
, it automatically becomeshttps:// api.openai.com/v1/
.Perplexity (https://www.perplexity.ai/) has the same OpenAI API protocol (chat.completions) but if we want to use Perplexity Sonar in HostedGPT and put the api url
https://api.perplexity.ai/
will becomehttps://api.perplexity.ai/v1/
and won't work.Possible solution: Pass the argument api_version: "" and when using the ChatGPT URL, put v1 already.
Beta Was this translation helpful? Give feedback.
All reactions