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.1k stars 1.21k forks source link

Azure Inference Rest Sample and README Issue #31994

Open Yionse opened 5 days ago

Yionse commented 5 days ago

1.

Section Link:

Image

Reason:

Link broken.

2.

Section Links:

Image

Reason:

There is a return value, but an exception is thrown.

3.

Section Links:

Image

Reason:

JSON string conversion failed.

@joheredi for notification.

howieleung commented 21 hours ago

I can't reproduce issue #2. There is no exception. Here is my output: Image I am using node v18.18.2. Could you try to use this node version or tell me what version you are using along with why there is exception?

howieleung commented 21 hours ago
  1. I can't reproduce the broken link. I went to https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest#azure-inference-rest-client-library-for-javascript Then I click API reference documentation taken me to https://learn.microsoft.com/javascript/api/@azure-rest/ai-inference/

This link works. Please let me know if I miss something.

howieleung commented 20 hours ago

Regarding to #3, I also can't reproduce the issue func.arguments.

Anyway, but problem liked this should be end point issue since it fails to return arguments. Anyway, please try again. Maybe downstream has a recent fix.  Image

Yionse commented 13 hours ago

Regarding to #3, I also can't reproduce the issue func.arguments.

Anyway, but problem liked this should be end point issue since it fails to return arguments. Anyway, please try again. Maybe downstream has a recent fix.  Image

@howieleung Regarding #1 and #2, they do no longer exist. But for #3, it still exists. Can you tell me what your model name is? I tested it based on GPT-35-Turbo.

Image

howieleung commented 29 minutes ago

I use gpt-4o. The complain on JSON.parse. So let's identify what is being parsed. Can you print func.arguments