You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MSDNAndi opened this issue
Nov 21, 2024
· 1 comment
Assignees
Labels
agentsbugSomething isn't workingexperimentalAssociated with an experimental featurefollow upIssues that require a follow up from the community..NETIssue or Pull requests regarding .NET codequestionFurther information is requestedwontfixThis will not be worked on
github-actionsbot
changed the title
Bug: GettingStartedWithAgents Step09_Assistant_Vision fails with "only messages with 'type=text' are supported currently
.Net: Bug: GettingStartedWithAgents Step09_Assistant_Vision fails with "only messages with 'type=text' are supported currently
Nov 21, 2024
I've observed latency on when Azure is able to fully support certain features, but I'm honestly surprised they have not achieved parity here yet.
I have validated that this sample does work as expected for when configured for Open AI services using either gpt-4o or gpt-4o-mini. Image support can be dependent on which model is targeted, but I believe the Assistant V2 API requires the targetting of these newer models anyway.
From our perspective, we want to support the full breadth of the Assistant API without restrictions based on which service is targeted. This isn't unlike SK's support for function-calling. We support function-calling/plug-ins and yet it is possible for the developer to use a connector / target a model that does not support function calling.
agentsbugSomething isn't workingexperimentalAssociated with an experimental featurefollow upIssues that require a follow up from the community..NETIssue or Pull requests regarding .NET codequestionFurther information is requestedwontfixThis will not be worked on
Describe the bug
Running the Step09_Assistant_Vision encounters an error.
(I verified that it is configured with a gpt4-o model.)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test should complete without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Additional context
Add any other context about the problem here.
GettingStarted.Step09_Assistant_Vision.UseSingleAssistantAgentAsync
Source: Step09_Assistant_Vision.cs line 20
Duration: 3.7 min
Message:
System.ClientModel.ClientResultException : HTTP 400 (invalid_request_error: invalid_type)
Parameter: content
Invalid message content: only messages with 'type=text' are supported currently.
Stack Trace:
ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
AzureAssistantClient.CreateMessageAsync(String threadId, BinaryContent content, RequestOptions options)
AssistantClient.CreateMessageAsync(String threadId, MessageRole role, IEnumerable`1 content, MessageCreationOptions options, CancellationToken cancellationToken)
AssistantThreadActions.CreateMessageAsync(AssistantClient client, String threadId, ChatMessageContent message, CancellationToken cancellationToken) line 93
<g__InvokeAgentAsync|0>d.MoveNext() line 60
--- End of stack trace from previous location ---
Step09_Assistant_Vision.UseSingleAssistantAgentAsync() line 45
Step09_Assistant_Vision.UseSingleAssistantAgentAsync() line 55
Step09_Assistant_Vision.UseSingleAssistantAgentAsync() line 55
--- End of stack trace from previous location ---
The text was updated successfully, but these errors were encountered: