Skip to content

Commit 4da8c05

Browse files
stephentoubCopilot
andauthored
Update src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponsesChatClient.cs
Co-authored-by: Copilot <[email protected]>
1 parent 920a8c9 commit 4da8c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponsesChatClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ static FunctionCallOutputResponseItem SerializeAIContent(string callId, IEnumera
877877
{
878878
Type = "input_file",
879879
FileData = dc.Uri, // contrary to the docs, file_data is expected to be a data URI, not just the base64 portion
880-
FileName = dc.Name ?? Guid.NewGuid().ToString("N"), // contrary to the docs, file_name is required
880+
FileName = dc.Name ?? $"file_{Guid.NewGuid():N}", // contrary to the docs, file_name is required
881881
});
882882
break;
883883

0 commit comments

Comments
 (0)