Skip to content

Commit

Permalink
docs: small term fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Dec 1, 2024
1 parent 826b584 commit f08df56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constants/API/CustomTemplates.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Below is an explanation of what each field does:
- `contentName: string` - the key of the [CONTENT] field
- `type: textCompletions` - Use this if the API uses text completions
- `authHeader: 'Authorization' | 'X-API-KEY' | string` - The header key for authorization
- `authPrefix: 'Bearer ' | string` - A prefix before the key value in the authorization header
- `authPrefix: 'Bearer ' | string` - A prefix before the API key value in the authorization header
- `removeLength: boolean` - when `max_length` is defined as a sampler, it can be used for controlling context size client-side, even if the API used doesn't support it. This allows you to remove the `max_length` field from the final request body in case the API used does not allow unsupported fields.
- `removeSeedifNegative?: boolean` - Some APIs only allow seed values of at least 0, and prefer an undefined seed for random seed values. This will remove the seed value if it is `-1` from the final request body.
- `APIPayloadFormat` - Refer to [RequestBuilder.ts](https://github.com/Vali-98/ChatterUI/blob/master/constants/API/RequestBuilder.ts) for how the request body is constructed
Expand Down

0 comments on commit f08df56

Please sign in to comment.