Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NullReferenceException thrown in CreateAddCustomHeadersPolicy when OpenAIClientOptions is null #85

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

joseharriaga
Copy link
Collaborator

This change adds a necessary null check to the CreateAddCustomHeadersPolicy method in the OpenAIClient for the cases when the OpenAIClientOptions argument is null.

@joseharriaga joseharriaga changed the title Fix NullReferenceException thrown when OpenAIClientOptions is null Fix NullReferenceException thrown in CreateAddCustomHeadersPolicy when OpenAIClientOptions is null Jun 23, 2024
@trrwilson trrwilson merged commit 0b97311 into main Jun 24, 2024
1 check passed
@trrwilson trrwilson deleted the joseharriaga/Null-ClientOptions branch June 24, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants