Skip to content

refactor(ai/core): align language model call stream naming#14238

Open
gr2m wants to merge 3 commits intomainfrom
rename-model-message-stream-part-types
Open

refactor(ai/core): align language model call stream naming#14238
gr2m wants to merge 3 commits intomainfrom
rename-model-message-stream-part-types

Conversation

@gr2m
Copy link
Copy Markdown
Collaborator

@gr2m gr2m commented Apr 8, 2026

Background

As part of the streamText custom loop refactor work, we are converging terminology on "language model call" and reducing mixed naming in the low-level streaming primitives.

Summary

  • renamed streamModelCall to streamLanguageModelCall via the new stream-language-model-call export path
  • renamed ModelCallStreamPart to LanguageModelStreamPart across packages/ai internals, tests, and the custom loop example
  • updated experimental exports to experimental_streamLanguageModelCall and Experimental_LanguageModelStreamPart

Manual Verification

tests and type checks pass

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • n/a Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Rename streamModelCall to streamLanguageModelCall and rename ModelCallStreamPart to LanguageModelStreamPart to align terminology with language model call primitives.

Made-with: Cursor
@tigent tigent bot added ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. maintenance CI, internal documentation, automations, etc labels Apr 8, 2026
gr2m added 2 commits April 8, 2026 10:06
Rename stream model call implementation and test files to match streamLanguageModelCall naming, and add a changeset documenting the breaking type rename.

Made-with: Cursor
Refactor naming conventions for clarity and consistency.
@gr2m gr2m marked this pull request as ready for review April 8, 2026 17:08
@gr2m gr2m enabled auto-merge (squash) April 8, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. maintenance CI, internal documentation, automations, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant