-
Notifications
You must be signed in to change notification settings - Fork 0
API
Jakaline edited this page Sep 23, 2024
·
1 revision
Gremory provides a single POST endpoint.
This endpoint allows you to generate OpenAI-compatible chat completions (messages) and legacy text completions (prompt).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | No | None | The input prompt for the chat completion. |
| do_sample | boolean | No | True | Whether to use sampling in the generation process. |
| samplers | array of Sampler objects | No | None | List of sampler configurations to use. |
| add_generation_prompt | boolean | No | True | Whether to add a generation prompt to the input. |
The structure of a Sampler object is not provided in the given information. You may want to add details about the Sampler object if available.
{
"prompt": "Tell me a joke about programming.",
"do_sample": true,
"samplers": [
{
// Sampler configuration
}
]
}