Skip to content

Fix: Correct environment variable handling for limited Azure OpenAI GPT and embedding access by properly differentiating endpoints. #110

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CatilonyZhang
Copy link

No description provided.

…PT and embedding access by properly differentiating endpoints.
@CatilonyZhang
Copy link
Author

in some collabrating project , the embedding azure and completion azure might not be the same endpoint , but in current code the azure client fail to deal with them seperately

@gusye1234
Copy link
Owner

LGTM! Would you like to also add related docs in readme, for azure openai ?

@@ -4,6 +4,7 @@

import aioboto3
from openai import AsyncOpenAI, AsyncAzureOpenAI, APIConnectionError, RateLimitError
from azure.core.exceptions import HttpResponseError
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add azure dep in requirement.txt

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait there is no Azure in requirement? shiii,sorry for that

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.

2 participants