Skip to content

[Q/FR] "Legacy" Completion #45

@NightMachinery

Description

@NightMachinery

Is there a way to do so-called legacy completions?

res = openrouter_client.completions.create(
    model="mistralai/mixtral-8x22b",
    prompt="""...""",
    stream=True,
    echo=False, #: Echo back the prompt in addition to the completion
    max_tokens=100,
)

This API is lower-level than the ChatML API, and usable with base models, which can be quite strong as an auto-completer.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions