-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Is there a way to do so-called legacy completions?
- https://platform.openai.com/docs/guides/text-generation/completions-api
- https://platform.openai.com/docs/api-reference/completions/create
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:
joefbkohler and daanturo
Metadata
Metadata
Assignees
Labels
No labels