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
I'm using a company-specific proxy to interact with OpenAI. Our proxy requires a different URL structure for sending queries, specifically http://gpt-proxy.xx.com/gateway/azure/chat/completions
I can customize the base URL using the spring.ai.openai.base-url configuration, but the OpenAiApi seems to always append /v1/chat/completions to the base URL. This doesn't work with our required URL structure.
Could we have a new configuration property that allows for customization of this appended URI? This way, we could configure our application like this:
@Dragonchu Hello, I think the reason why v1/chat/completions is automatically added is because the chatCompletionEntity,chatCompletionStream method in OpenAiApi.java automatically added uri as /v1/chat/completions. I think it would be possible to overload the functions to receive additional uri. (ex:chatCompletionEntity(uri, ChatCompletionRequest)))
And I'd like to ask the maintainers if this idea is a good way or if it's okay for me to solve it.
I'm using a company-specific proxy to interact with OpenAI. Our proxy requires a different URL structure for sending queries, specifically
http://gpt-proxy.xx.com/gateway/azure/chat/completions
I can customize the base URL using the spring.ai.openai.base-url configuration, but the OpenAiApi seems to always append
/v1/chat/completions
to the base URL. This doesn't work with our required URL structure.Could we have a new configuration property that allows for customization of this appended URI? This way, we could configure our application like this:
This change would make the OpenAiApi more flexible for users with unique URL requirements.
The text was updated successfully, but these errors were encountered: