You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
It is possible to specify a base URL with retrofit as follows:
However, if
baseUrl
contains any path segments (e.g./openai/
above) - they will be ignored because someOpenAiApi
methods define absolute paths:openai-java/client/src/main/java/com/theokanning/openai/client/OpenAiApi.java
Line 69 in e7de81c
/
to makev1/chat/completions
.Additionally, the behaviour of heading
/
is inconsistent:openai-java/client/src/main/java/com/theokanning/openai/client/OpenAiApi.java
Line 56 in e7de81c
A temporary solution for now is to use a custom interceptor to manually insert missing path segments into every request.
The text was updated successfully, but these errors were encountered: