Skip to content

Conversation

@jakedahn
Copy link
Contributor

@jakedahn jakedahn commented Sep 11, 2025

Summary by cubic

Adds type-safe handling for models that don’t support system prompts by injecting the system text into the first message without breaking content types. Prevents “[object Object]” from appearing in prompts and keeps behavior consistent. Addresses Linear CT-885.

  • Bug Fixes
    • Inserts system text as a proper text part when content is an array or object, or as a string when content is a string.
    • Unsets streamParams.system to avoid sending unsupported fields to the model.

@linear
Copy link

linear bot commented Sep 11, 2025

@jakedahn jakedahn merged commit d8b1d80 into main Sep 11, 2025
8 checks passed
@jakedahn jakedahn deleted the jake/ct-885-object-object-issue branch September 11, 2025 16:31
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