Skip to content

[WIP] Add sample code in Python - #9

Draft
Zhijie Huang (hund030) wants to merge 3 commits into
Azure-Samples:mainfrom
hund030:zhihuan/sample_code
Draft

[WIP] Add sample code in Python#9
Zhijie Huang (hund030) wants to merge 3 commits into
Azure-Samples:mainfrom
hund030:zhihuan/sample_code

Conversation

@hund030

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/.env Outdated
Comment thread src/app.py Outdated
Comment thread src/app.py Outdated
Comment thread src/app.py
message = data["message"]

# gets the API Key from environment variable AZURE_OPENAI_API_KEY
client = AzureOpenAI(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Since we're using Quart, we should take advantage of the Async client instead, I think?

Comment thread .gitignore Outdated
@hund030 Zhijie Huang (hund030) changed the title Add sample code in Python [WIP] Add sample code in Python Jun 18, 2024
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