Skip to content

anthropic: handle top-level system param; bump version#21

Merged
devwdave merged 1 commit intomainfrom
ts-anthropic-fix
Feb 25, 2026
Merged

anthropic: handle top-level system param; bump version#21
devwdave merged 1 commit intomainfrom
ts-anthropic-fix

Conversation

@rpkruse
Copy link
Copy Markdown
Contributor

@rpkruse rpkruse commented Feb 25, 2026

  • Add support for a top-level system parameter for the Anthropic provider:

    • include system?: string in AnthropicCreateArgs
    • convert a top-level system into a system message when building LLMRequest
    • extract a system message back to the top-level system when converting a request to args.
  • Filter out system messages from messagesToAnthropicInput and ensure extractParams ignores the system field.

  • Also bump package version to 0.1.5-beta in package.json and package-lock.json.

Add support for a top-level `system` parameter for the Anthropic provider: include `system?: string` in AnthropicCreateArgs, convert a top-level `system` into a system message when building LLMRequest, and extract a system message back to the top-level `system` when converting a request to args. Filter out system messages from messagesToAnthropicInput and ensure extractParams ignores the `system` field. Also bump package version to 0.1.5-beta in package.json and package-lock.json.
@rpkruse rpkruse requested a review from devwdave February 25, 2026 19:30
@devwdave devwdave merged commit b5aac09 into main Feb 25, 2026
4 checks passed
@devwdave devwdave deleted the ts-anthropic-fix branch February 25, 2026 19:32
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