Skip to content

fix(providers): adapt assistant history for pi-ai#17

Merged
Sun-sunshine06 merged 1 commit intomainfrom
fix/assistant-message-content-shape
Apr 18, 2026
Merged

fix(providers): adapt assistant history for pi-ai#17
Sun-sunshine06 merged 1 commit intomainfrom
fix/assistant-message-content-shape

Conversation

@Sun-sunshine06
Copy link
Copy Markdown
Collaborator

Summary

  • adapt shared chat history into pi-ai's expected context/message shape before calling completeSimple
  • convert assistant string history into text blocks so follow-up turns no longer crash on �ssistantMsg.content.flatMap
  • add a regression test covering a multi-turn conversation with prior assistant history

Validation

  • corepack pnpm --filter @open-codesign/providers test
  • corepack pnpm --filter @open-codesign/desktop typecheck

@Sun-sunshine06 Sun-sunshine06 merged commit abf7836 into main Apr 18, 2026
6 of 8 checks passed
@Sun-sunshine06 Sun-sunshine06 deleted the fix/assistant-message-content-shape branch April 18, 2026 09:35
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.

1 participant