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

Update azure.py #1893

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

Update azure.py #1893

wants to merge 1 commit into from

Conversation

Jozef833
Copy link

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Examples of values for azure_endpoint include the trailing forward slash, but 4 string concatenations in src/openai/lib/azure.py are not compatible with the inclusion of the trailing character. This commit makes them agnostic to the trailing character.

Additional context & links

Here's an example where an example endpoint includes the trailing forward slash:

azure_endpoint="https://example-resource.azure.openai.com/",

Examples of values for azure_endpoint include the trailing forward slash, but 4 string concatenations in this file are not compatible with the inclusion of the trailing character. This commit makes them agnostic to the trailing character.
@Jozef833 Jozef833 requested a review from a team as a code owner November 26, 2024 00:19
@RobertCraigie
Copy link
Collaborator

Thanks for the PR! It looks like the f-string syntax you're using only works on Python >= 3.12, can you update it to work on older versions?

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