Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.07k stars 1.19k forks source link

[@azure/openai-assistants] import error. #28529

Closed tsuzaki430 closed 8 months ago

tsuzaki430 commented 8 months ago

Describe the bug I tried "@azure/openai-assistants" but it didn't work expectedly on my VSCODE.

import {AssistantsClient,OpenAIKeyCredential} from "@azure/openai-assistants";

But I met the error 'TS7016'. Does this library has some problem in package.json or typings? version: "@azure/openai-assistants": "1.0.0-beta.1",

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Additional context Add any other context about the problem here.

glharper commented 8 months ago

@tsuzaki430 Thank you for using OpenAI Assistants SDK for JS, and writing this issue up. We've released a new version with a fix for this.

harryault-dev commented 8 months ago

@glharper is this definitely resolved? Issue Persists in the latest pull. Have to manually alter the package .json with the only type available.

 ".": {
      "types": "./types/openai-assistants.d.ts",
glharper commented 8 months ago

@glharper is this definitely resolved? Issue Persists in the latest pull. Have to manually alter the package .json with the only type available.


 ".": {
      "types": "./types/openai-assistants.d.ts",
``

Forgot to add types/src output to the package.json files. Sorry about that!

harryault-dev commented 8 months ago

Haha it's a Friday! 👍 Thank you for the quick reply / resolution

glharper commented 8 months ago

Fixed with v1.0.0-beta.3

tsuzaki430 commented 8 months ago

glharper, harryault-dev,

Thank you for fix and checking resolution. beta3 looks work expectedly.