AI-Studio/app/MindWork AI Studio/Provider/OpenAI/ChatCompletionDelta.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

17 lines
401 B
C#

using System.Text.Json;
using System.Text.Json.Serialization;
namespace AIStudio.Provider.OpenAI;
/// <summary>
/// The delta text of a choice.
/// </summary>
public sealed record ChatCompletionDelta
{
[JsonPropertyName("content")]
public JsonElement? RawContent { get; init; }
[JsonIgnore]
public string Content => ChatCompletionContent.GetText(this.RawContent) ?? string.Empty;
}