v50

latestOpenAPI 3.0.0raw.githubusercontent.com2024-08-26226284.9 KB

Completion

Initiates a completion request to the configured LLM provider using specified parameters and provided variables. This endpoint abstracts the integration with different model providers, enabling seamless switching between models while maintaining a consistent data model for your application.

post/sdk/v1/prompts/{id}/completion

Path parameters

idstring required
Example:1212121

Request body

variablesPromptVariables

The template variables added to the prompt when executing the prompt.

userstring

A unique identifier representing your end-user, which can help monitor and detect abuse.

Response

Successful completion response

provider'ANTHROPIC' | 'OPENAI' required

The provider of the provided model.

namestring required
All 22 operations