Skip to content

.Net: Bug: The content type application/graphql-response+json is not supported. #12897

@ian-work-1

Description

@ian-work-1

Describe the bug
When using ImportPluginFromOpenApiAsync() with data-api-builder and graphql and gpt-4 host6ed on azure the orchestrator throws the error 'The content type application/graphql-response+json is not supported.' when receiving the response.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a new agent that uses AddAzureOpenAIChatCompletion() and 'gpt-4', example repo here: https://github.com/tommasodotNET/chat-with-database
  2. Setup graphql endpoint using https://github.com/Azure/data-api-builder/
  3. Make a tool call to the OpenApi function

Expected behavior
The orchestrator should correctly parse the response from graphql.

*Env
deploymentName: "gpt-4",
C#
Windows
Visual Studio

Image

Can be reproduced in this repo: https://github.com/tommasodotNET/chat-with-database

Image

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't working

Type

Projects

Status

Bug

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions