This will allow the OpenAIClient be used against custom OpenAI Gateways that intercept and inject the apikey, in the pipeline without having to provide a fake key on the caller code.
This also allows the client to be used against other OpenAI compatible endpoints that don't require ApiKey to be sent in the header.
This will allow the OpenAIClient be used against custom OpenAI Gateways that intercept and inject the apikey, in the pipeline without having to provide a fake key on the caller code.
This also allows the client to be used against other OpenAI compatible endpoints that don't require ApiKey to be sent in the header.
https://github.com/openai/openai-dotnet/blob/0b97311f58dfb28bd883d990f68d548da040a807/src/Custom/OpenAIClient.cs#L58
Consider not having an empty check or allow us to use a
NullCredential.Instance
in theSystem.ClientModel
package.https://github.com/Azure/azure-sdk-for-net/blob/d1cac0ba5673ddcb999846d560c13f71f7b259fe/sdk/core/System.ClientModel/src/Convenience/ApiKeyCredential.cs#L64![image](https://github.com/openai/openai-dotnet/assets/19890735/98cd4c89-616e-4238-8da7-bcf75466adc7)