-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openai: do not force API key, fix error processing
OpenAI backends will no longer require an API key to be provided. This is because users may wish to use a service such as Portkey with its Virtual Keys feature, which doesn't require an API key. If an API key is not provided, an Authorization header is not sent. Also, error handling in the openai implementation is both fixed and expanded to support Portkey error format.
- Loading branch information
Showing
1 changed file
with
70 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters