Giter VIP home page Giter VIP logo

Comments (4)

github-actions avatar github-actions commented on June 26, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @ralph-msft @trrwilson.

from azure-sdk-for-net.

trrwilson avatar trrwilson commented on June 26, 2024

Hello, @Freddeb! The latest library absolutely does support Assistants v2, so you're looking in the right place.

Could you share a more complete code snippet demonstrating the creation of the assistant and any additional modification details? That error message indicates that a tool resource is being provided. For reference, here's a code snippet that creates an assistant and then modifies it like you shared:

AzureOpenAIClient azureClient = new(endpoint, keyCredential);
AssistantClient client = azureClient.GetAssistantClient();

Assistant assistant = await client.CreateAssistantAsync("gpt-4-turbo");

assistant = await client.ModifyAssistantAsync(assistant, new AssistantModificationOptions()
{
    DefaultTools = { new CodeInterpreterToolDefinition() },
});

Console.WriteLine(assistant.Tools[0].ToString());

from azure-sdk-for-net.

Freddeb avatar Freddeb commented on June 26, 2024

Hello @trrwilson,

Thank you for you feedback.
I will follow you code snippet and create the assistant this time from my code.
I'll give you my feedback in a couple of hours.

It is maybe important to say that I firstly created my assistant from the web interface of Azure (Assistant Playground) and then i retrieved the assistant by id from my code, then I called the method ModifyAssistantAsync. This web interface only shows V1 features.

image

Thank you.

from azure-sdk-for-net.

Freddeb avatar Freddeb commented on June 26, 2024

Hello @trrwilson,
Based on your code snippet, I've created a new assistant from my C# code (and not from the Azure OpenAI studio web interface).
The following actions were all successful :
Creation of the assistant (Type: code interpreter)
Modification of the assistant (Type: file search)
Create a thread
Create a message with 1 attachment (file_id -> PDF), user message = question about the PDF document content.
Create a run and wait for completion.
The returned message was all my expectations.

I hope that the Azure platform will quickly adapt its web interface to give the possibility of creating assistants in version V2.

Thank you for you help and for your work.
FdB

from azure-sdk-for-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.