From 6efa455164606345c4e27abbccd5bd0fe1f60784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20=C5=A0t=C3=A1gl?= Date: Sat, 8 Jun 2024 19:15:34 +0200 Subject: [PATCH] fix parallel tool calls Co-Authored-By: hallidev --- LlmTornado/Chat/ChatRequest.cs | 2 +- LlmTornado/LlmTornado.csproj | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LlmTornado/Chat/ChatRequest.cs b/LlmTornado/Chat/ChatRequest.cs index 4ede984..a3804e6 100644 --- a/LlmTornado/Chat/ChatRequest.cs +++ b/LlmTornado/Chat/ChatRequest.cs @@ -225,7 +225,7 @@ public string? StopSequence /// As of 6/24, the only vendor supporting the feature is OpenAI. /// [JsonProperty("parallel_tool_calls")] - public bool ParallelToolCalls { get; set; } = true; + public bool? ParallelToolCalls { get; set; } /// /// Represents an optional field when sending tools calling prompt. diff --git a/LlmTornado/LlmTornado.csproj b/LlmTornado/LlmTornado.csproj index 4c1a017..5c0dd0b 100644 --- a/LlmTornado/LlmTornado.csproj +++ b/LlmTornado/LlmTornado.csproj @@ -5,15 +5,15 @@ Matěj Štágl, LlmTornado contributors LlmTornado One .NET library to consume OpenAI, Anthropic, Cohere, Azure, and self-hosed APIs. - This library is licensed MIT + Matěj Štágl CC0-1.0 https://github.com/lofcz/LlmTornado https://github.com/lofcz/LlmTornado OpenAI, Cohere, Anthropic, Azure, LLM, GPT-4O, GPT-4, GPT-Turbo, DALL-E, Coral, Claude3, Command-R-Plus OpenAI NextGeneration - support mid-conversation Provider switching + support disabling parallel tools calling, Anthropic streaming improvements LlmTornado - 3.0.15 + 3.0.16 3.0.5 3.0.5 True @@ -26,6 +26,7 @@ true enable net8.0 + nuget_logo.jpg