Can I use other services besides Azure? #216
-
Can I also use other providers that use the same api structure as open api. With Azure this is already possible but what about e.g. https://docs.endpoints.anyscale.com/ which output the data in the same format as open ai? |
Beta Was this translation helpful? Give feedback.
Answered by
DC-Sebastian
Jan 8, 2024
Replies: 1 comment 1 reply
-
This client seems to support the customization of the base url (according to the documentation): $yourApiKey = 'YOUR_ANYSCALE_ENDPOINT_API_KEY';
$client = OpenAI::factory()
->withApiKey($yourApiKey)
->withBaseUri('https://api.endpoints.anyscale.com/v1') // default: api.openai.com/v1
->make(); Have you tried this approach? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the meantime it works, at the time I wrote my question there was a problem with a missing header which led to an error message, but this was fixed a few months ago.