Skip to content

max completion/output token calculations #5792

@gr2m

Description

@gr2m

Description

Follow up to #5769. @lgrammel talked shortly about this:

packages/openai/src/openai-chat-language-model.ts:

  190        // openai specific settings:
  191:       // TODO remove in next major version; we auto-map maxOutputTokens now
  192        max_completion_tokens: openaiOptions.maxCompletionTokens,

There is a difference between output and completion tokens and it will take some testing and some math to consolidate the options. Or we might end up keeping both. This requires more investigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/providerrelated to a provider package. Must be assigned together with at least one `provider/*` labelfeatureNew feature or requestprovider/openaiIssues related to the @ai-sdk/openai provider

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions