Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Inference Rest Sample and README Issue #31994

Open
Yionse opened this issue Nov 28, 2024 · 8 comments
Open

Azure Inference Rest Sample and README Issue #31994

Yionse opened this issue Nov 28, 2024 · 8 comments
Assignees
Labels
AI Model Inference Issues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest) Client This issue points to a problem in the data-plane of the library. Docs test-manual-pass

Comments

@Yionse
Copy link
Member

Yionse commented Nov 28, 2024

Section Link:

Image

Reason:

Link broken.

Section Links:

Image

Reason:

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

Section Links:

Image

Reason:

JSON string conversion failed.

@joheredi for notification.

@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 28, 2024
@v-xuto v-xuto added Client This issue points to a problem in the data-plane of the library. Docs test-manual-pass AI Model Inference Issues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest) labels Nov 28, 2024
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 28, 2024
@v-xuto v-xuto added the needs-team-triage Workflow: This issue needs the team to triage. label Nov 28, 2024
@xirzec xirzec removed the needs-team-triage Workflow: This issue needs the team to triage. label Dec 2, 2024
@howieleung
Copy link
Member

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
Copy link
Member

  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
Copy link
Member

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
Copy link
Member Author

Yionse commented Dec 3, 2024

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
Copy link
Member

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

@Yionse
Copy link
Member Author

Yionse commented Dec 4, 2024

@howieleung If I use GPT-4o, there is no error. But with GPT-35-Turbo, the following error occurs. Does this need to be solved? But they all support /chat/completions.
Image

@howieleung
Copy link
Member

It is hard to say whether GPT-35-Turbo supported or not. Because according to

https://openai.com/index/function-calling-and-other-api-updates/

It said, "Developers can now describe functions to gpt-4-0613 and gpt-3.5-turbo-0613"

That imply early version of 35 turbo doesn't support it.

@Yionse
Copy link
Member Author

Yionse commented Dec 5, 2024

@howieleung, After testing, it is indeed supported for 0613. Can you consider prompting users to use 0613 version in the sample, since the default version is 0301 now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Model Inference Issues related to the client library for Azure AI Model Inference (\sdk\ai\ai-inference-rest) Client This issue points to a problem in the data-plane of the library. Docs test-manual-pass
Projects
None yet
Development

No branches or pull requests

4 participants