AI-Studio/app/MindWork AI Studio/Provider/OpenAI/ChatCompletionResponseMessage.cs
Peer Schütt ead156ac4d Set parallel_tool_calls to false in chat completions, because AI Studio calls all tools sequentially at the moment.
Also fixed a bug that resulted in an error when using tools with Mistral API
2026-07-23 17:01:46 +02:00

20 lines
510 B
C#

using System.Text.Json;
using System.Text.Json.Serialization;
namespace AIStudio.Provider.OpenAI;
public sealed record ChatCompletionResponseMessage
{
public string Role { get; init; } = string.Empty;
[JsonPropertyName("content")]
public JsonElement? RawContent { get; init; }
[JsonIgnore]
public string? Content => ChatCompletionContent.GetText(this.RawContent);
public string? ReasoningContent { get; init; }
public IList<ChatCompletionToolCall>? ToolCalls { get; init; }
}