Skip to content

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub commented Oct 22, 2024

  • Avoid null arg exception when constructing system message with null text
  • Avoid empty exception when constructing user message with no parts
  • Use all parts rather than just first text part for system message
  • Handle assistant messages with both content and tools
  • Avoid unnecessarily trying to weed out duplicate call ids
Microsoft Reviewers: Open in CodeFlow

- Avoid null arg exception when constructing system message with null text
- Avoid empty exception when constructing user message with no parts
- Use all parts rather than just first text part for system message
- Handle assistant messages with both content and tools
- Avoid unnecessarily trying to weed out duplicate call ids
- Normalize null to string.Empty in TextContent
- Ensure GetContentParts always produces at least one part, even if empty text content
@stephentoub stephentoub merged commit 7cac12b into dotnet:main Oct 22, 2024
6 checks passed
@stephentoub stephentoub deleted the fixclients branch October 22, 2024 15:11
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2024
@jeffhandley jeffhandley added the area-ai Microsoft.Extensions.AI libraries label Mar 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants