/completion
Endpoint to complete a prompt
The completions endpoint allows you to complete a prompt with the selected model. To configure the model, you can use the model
as well as the provider
parameter. More models will be added over time.
To use the API you need an API key. To request access, please contact us at support@langdock.com
Body
The prompt to be completed.
The provider of the model to use for completion. Defaults to openai
.
openai
, anthropic
The name of the model to use for completion. Defaults to gpt-3.5-turbo
.
gpt-3.5-turbo
, gpt-4
, claude-2
, claude-instant-1
, claude-3-haiku
, claude-3-sonnet
, claude-3-opus
The region of the model to use for completion. Defaults to eu
.
eu
, us
The sampling temperature to use for completion. The allowed range is between 0
and 1
. Defaults to 0.7
.
Response
The completion performed by the model.
The user name.
Contains relevant information about the consumption of the prompt.
Was this page helpful?