-
Notifications
You must be signed in to change notification settings - Fork 202
Update quickstart Python files #355
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
base: nov25-updates
Are you sure you want to change the base?
Update quickstart Python files #355
Conversation
| load_dotenv() | ||
|
|
||
| project_client = AIProjectClient( | ||
| endpoint=os.environ["AZURE_AI_PROJECT_ENDPOINT"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be AZURE_AI_FOUNDRY_PROJECT_ENDPOINT, to match the one below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. I was initially focused on just getting them working. updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES - that's what I have documented.
|
|
||
| AZURE_AI_PROJECT_ENDPOINT="https://<YOUR-RESOURCE-NAME>.services.ai.azure.com/api/projects/<YOUR-PROJECT-NAME>" | ||
| AZURE_AI_FOUNDRY_PROJECT_ENDPOINT="https://<YOUR-RESOURCE-NAME>.services.ai.azure.com/api/projects/<YOUR-PROJECT-NAME>" | ||
| AZURE_AI_FOUNDRY_AGENT_NAME="MyAgent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see Agent Name defined as env variable, but not used in samples. Should we hard-code the Agent name or read it from env variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to read from env var
Made following changes:
AZURE_AI_MODEL_DEPLOYMENT_NAMEtoAZURE_AI_FOUNDRY_MODEL_DEPLOYMENT_NAMEto match .env fileopenaito requirements .txt file