Unknown parameter: 'conversation' #2477
-
#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 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
@stephentoub could 66a399e help by any chance? |
Beta Was this translation helpful? Give feedback.
-
|
Can you provide more details? Where is that error coming from? |
Beta Was this translation helpful? Give feedback.
-
|
@ReubenBond, @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. |
Beta Was this translation helpful? Give feedback.
-
|
I agree, created #2632 to fix that. |
Beta Was this translation helpful? Give feedback.

I agree, created #2632 to fix that.