fix: use Responses client options after Agent Framework update

This commit is contained in:
2026-09-17 13:23:57 +02:00
parent 150f11b6a7
commit 4d66de943e
@@ -7,7 +7,6 @@ using System.Text.Json.Nodes;
using Microsoft.Agents.AI.Compaction; using Microsoft.Agents.AI.Compaction;
using Microsoft.Extensions.AI; using Microsoft.Extensions.AI;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using OpenAI;
using OpenAI.Responses; using OpenAI.Responses;
namespace MeetingAssistant.Summary; namespace MeetingAssistant.Summary;
@@ -798,7 +797,7 @@ public sealed class LiteLlmResponsesChatClient : IChatClient
string apiKey, string apiKey,
AsyncLocal<string?> requestInitiator) AsyncLocal<string?> requestInitiator)
{ {
var options = new OpenAIClientOptions var options = new ResponsesClientOptions
{ {
Endpoint = httpClient.BaseAddress Endpoint = httpClient.BaseAddress
?? throw new InvalidOperationException("LiteLLM HTTP client requires a base address."), ?? throw new InvalidOperationException("LiteLLM HTTP client requires a base address."),