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

Support Azure OpenAI API Type #23

Closed
zmeir opened this issue Jul 7, 2023 · 3 comments
Closed

Support Azure OpenAI API Type #23

zmeir opened this issue Jul 7, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@zmeir
Copy link
Contributor

zmeir commented Jul 7, 2023

Do you plan on adding support for customizing openai API setting?

More specifically, will it be possible to control the openai api_type and api_base properties to run against Azure OpenAI? Similarly to how this is done when using the openai package directly:

import openai
# This is set to `azure`
openai.api_type = "azure"
# The API key for your Azure OpenAI resource.
openai.api_key = os.getenv("OPENAI_API_KEY")
# The base URL for your Azure OpenAI resource. e.g. "https://<your resource name>.openai.azure.com"
openai.api_base = os.getenv(" OPENAI_API_BASE ")
# OpenAI API Version
openai.api_version = os.getenv(" OPENAI_API_VERSION")
@hussam789 hussam789 added enhancement New feature or request good first issue Good for newcomers labels Jul 7, 2023
@hussam789
Copy link
Collaborator

Sure, thanks for suggesting @zmeir

@okotek
Copy link
Contributor

okotek commented Jul 7, 2023

Definitely, we'll add it next week

@okotek
Copy link
Contributor

okotek commented Jul 12, 2023

#40
@hussam789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants