You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tool call IDs are surfaced as part of ChatToolCall objects returned from ChatCompletion.ToolCalls. While the OpenAI service always provides non-empty IDs, some other endpoints, such as Gemini's "OpenAI compatible" endpoint, does not. The ChatToolCall.Id properties coming back from these calls is empty. That's fine, except that when you then try to use ChatToolCall.CreateFunctionToolCall to roundtrip the data from such a ChatToolCall, it fails with an argument exception about the ID being empty.
Steps to reproduce
Call ChatToolCall.CreateFunctionToolCall with string.Empty for the ID parameter.
Code snippets
OS
Windows
.NET version
.NET 9
Library version
2.2.0-beta.4
The text was updated successfully, but these errors were encountered:
Service
OpenAI
Describe the bug
Tool call IDs are surfaced as part of ChatToolCall objects returned from ChatCompletion.ToolCalls. While the OpenAI service always provides non-empty IDs, some other endpoints, such as Gemini's "OpenAI compatible" endpoint, does not. The ChatToolCall.Id properties coming back from these calls is empty. That's fine, except that when you then try to use ChatToolCall.CreateFunctionToolCall to roundtrip the data from such a ChatToolCall, it fails with an argument exception about the ID being empty.
Steps to reproduce
Call ChatToolCall.CreateFunctionToolCall with string.Empty for the ID parameter.
Code snippets
OS
Windows
.NET version
.NET 9
Library version
2.2.0-beta.4
The text was updated successfully, but these errors were encountered: