Skip to content

Quickstart broken #352

@pors

Description

@pors

I followed all the steps here: https://ai.azure.com/doc/azure/ai-foundry/quickstarts/get-started-code, but VS Code complains about:

Arguments missing for parameters "subscription_id", "resource_group_name", "project_name"Pylance[reportCallIssue](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportCallIssue.md)
class AIProjectClient(
    endpoint: str,
    subscription_id: str,
    resource_group_name: str,
    project_name: str,
    credential: TokenCredential,
    **kwargs: Any
)

and

Cannot access attribute "get_openai_client" for class "AIProjectClient"
  Attribute "get_openai_client" is unknownPylance[reportAttributeAccessIssue](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportAttributeAccessIssue.md)
(function) get_openai_client: Unknown

And indeed it doesn't run.

https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/python/mslearn-resources/quickstart/quickstart.py
cc @dargilco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions