Open amrit2cisco opened 7 months ago
@amrit2cisco Do you mean to also introduce these constants in the openai
file under gptcache?
@SimFG yes, and particularly the Azure OpenAI API key (which is fundamentally different from the vanilla OpenAI API Key) should be able to be used to route the requests to api_base
in the absence of a standard OpenAI API key
Is your feature request related to a problem? Please describe.
We are currently using Azure OpenAI to make API calls, seems that GPTCache only supports using the standard OpenAI API keys and it isn't possible to route the requests through Azure
Describe the solution you'd like.
OpenAI's library allows us to specify to route the requests through Azure with the following config:
Including support to do this through the GPTCache OpenAI adapter would be the way to replicate the same for GPTCache
Describe an alternate solution.
N/A
Anything else? (Additional Context)
No response