Skip to content

Add support for the user info endpoint #93

@kryachkow

Description

@kryachkow

Name and Version

latest

What is the problem this feature will solve?

Please add support for the DIAL /v1/user/info endpoint.

What is the feature you are proposing to solve the problem?

Motivation

StatGPT Backend needs to retrieve authenticated user information from DIAL. This is currently implemented with a local direct HTTP call:

GET /v1/user/info

To fully replace local DIAL wrappers with aidial-client, this endpoint should be available through the SDK.

Proposed API

For example:

user_info = await async_client.user.info()

or:

user_info = await async_client.users.me()

Expected Behavior

  • Use the same authentication configuration as the rest of the client.
  • Return a typed model if the response schema is stable, or dict[str, Any] if not.
  • Raise existing DialException-style errors on HTTP failures.

Use Case

StatGPT Backend uses DIAL authentication context to resolve the current user. Without SDK support, this still requires custom HTTP code even after migrating file and model operations to aidial-client.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions