Skip to content

fix: replace empty content with space in system message handling #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

Ariesly
Copy link
Contributor

@Ariesly Ariesly commented Dec 25, 2024

  • Replace genai.Text("") with genai.Text(" ") to avoid empty content error
  • Empty content is not allowed in the API, using single space as minimum valid content
  • This change affects system message processing where an empty model response was previously used

BREAKING CHANGE: None

- Replace genai.Text("") with genai.Text(" ") to avoid empty content error
- Empty content is not allowed in the API, using single space as minimum valid content
- This change affects system message processing where an empty model response was previously used

BREAKING CHANGE: None
@zhu327 zhu327 merged commit e10776f into zhu327:main Dec 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants