-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
AI Model InferenceIssues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest)Issues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest)ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Description
- Package Name: @azure-rest/ai-inference
- Package Version: 1.0.0-beta.5
- Operating system: MacOS
- nodejs
- version: v22.13.1
- browser
- name/version:
- typescript
- version: 5.8.2
- Is the bug related to documentation in
- README.md
- source code documentation
- SDK API docs on https://learn.microsoft.com
Describe the bug
Some types are missing or not (re-)exported, like the ErrorModeltype for the client response or parsed JSON response (Chat completion delta) from the SSE stream. In strongly typed environments that's an issue, again also with linters.
This means that you either have to write your own types (risking breaking changes/builds with updates) and cannot use explicit typing (sometimes inferred types are not enough).
Expected behavior
All used types in the library should be re-exported (like ErrorModeltype), and even if they're not returned/used directly by the client the type for the response objects should be provided, like for the Chat completion delta.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AI Model InferenceIssues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest)Issues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest)ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team