Unknown parameter: 'conversation' #2477
Answered
by
DeagleGross
Grégoire (verdie-g)
asked this question in
Q&A
#pragma warning disable OPENAI001
using System.ClientModel;
using Azure.AI.OpenAI;
using Microsoft.Agents.AI;
using Microsoft.Agents.AI.DevUI;
using Microsoft.Extensions.AI;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton<AIAgent>(sp =>
{
return new AzureOpenAIClient(new Uri(Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT")!),
new ApiKeyCredential(Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY")!))
.GetOpenAIResponseClient("gpt-4.1-mini")
.AsIChatClient()
.CreateAIAgent(name: "Test");
});
builder.Services.AddDevUI();
builder.Services.AddOpenAIResponses();
builder.Services.AddOpenAIConversations();
var app = builder.Build();
app.MapOpenAIResponses();
app.MapOpenAIConversations();
app.MapDevUI();
app.Run();In the I understand that Azure Open AI doesn't support the |
Answered by
DeagleGross
Dec 4, 2025
Replies: 4 comments 2 replies
|
Stephen Toub (@stephentoub) could 66a399e help by any chance? |
0 replies
|
Can you provide more details? Where is that error coming from? |
1 reply
|
Reuben Bond (@ReubenBond), Korolev Dmitry (@DeagleGross), this seems like a bug in the hosting of an agent. If the host is exposing responses / conversions to the client, the client will be sending back conversation id's, but those are only relevant to the host, not to whatever arbitrary IChatClient might be backing the agent. It shouldn't be forwarding the client's conversation Id. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I agree, created #2632 to fix that.