Open Johnz86 opened 3 weeks ago
I tried to debug the issue and found out that in:
def _get_client(self):
return AzureOpenAI(
api_key=self.key,
api_version=self.api_version,
azure_endpoint=self.endpoint,
)
I had no self.key.
For whatever reason I had no azure key set with: llm keys set azure
.
After I did it, the error disappeared.
Since the input to key is blank, you do not see if there is anything pasted/written.
Which is error prone. It would be nice to have a check for required variables.
feel free to submit a PR!
I have working configuration, that is working with openai azure quickstart:
And based on that I configured similar configuration azure/config.yaml:
What I get in reponse is: