Comments (4)
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.
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.
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.
Thank you.
from azure-sdk-for-net.
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)
- [FEATURE REQ] Support IsStored for any string field in Azure AI Search HOT 2
- [BUG]Failed to download PEM certificate from azure.keyvault with failure "The provided key does not match the public key for this certificate" HOT 1
- [FEATURE REQ] Tokens usage not present in embedding object HOT 3
- Add BlobBatch ability to delete individual blob snapshots HOT 1
- Can I rely on AzureWebJobs:extensions:ServiceBus options? HOT 3
- ServiceBus trigger session issues causing active message count to spike. Trigger falls behind for ~ 1.5 hour HOT 3
- Azure.Identity logging level should control the underlying log level of MSAL.NET
- [BUG] No way to specify local VS credentials for GraphServiceClient HOT 2
- Scopes not being included by default in the OpenTelemetry distro may be insufficiently documented HOT 2
- ManagedIdentityCredential authentication failed: Response from Managed Identity was successful, but the operation timed out prior to completion[QUERY] HOT 2
- [BUG] One of BlobContainerClient constructor overloads does not set clientSideEncryptionOptions HOT 1
- [QUERY] How can we use configuration when registering an Azure client HOT 6
- [BUG] Can't get token to connect to Azure Storage in GovCloud from Visual Studio HOT 2
- Azure AI Open AI Assistant Modify Assistant cannot remove last file [BUG] HOT 2
- Should not check response body when a DELETE LRO return 204 HOT 9
- REST API version? HOT 1
- https://www.facebook.com/nickryanpedralba?mibextid=LQQJ4d HOT 2
- [BUG] Azure.Monitor.OpenTelemetry.Exporter EventId duplicate key exception causes LogRecord to be dropped HOT 2
- [BUG] Azure.Monitor.OpenTelemetry.AspNetCore package HOT 3
- Add extension method TryGetSystemEvent to Azure.Messaging.EventGrid.SystemEvents prior to GA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.