Skip to content

bug: Anthropic assumes known models in completion make #1195

@Sytten

Description

@Sytten
  • I have looked for existing issues (including closed) about this

Bug Report

Following the change to introduce the generic builder, the make function for the CompletionModel was added. This calls Self::new which uses calculate_max_tokens. This is only meant to be used with the predefined models. Otherwise it's not flexible enough.

See #1069

Expected behavior

The generic provider should probably expect that the model passed in is not going to be one of the provided key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions