Add max_tokens parameter to plugin documentation and request function
This commit is contained in:
@@ -106,6 +106,7 @@ Adds a provider to the plugin.
|
||||
- `top_k?: number` - The top k value.
|
||||
- `top_p?: number` - The top p value.
|
||||
- `temperature?: number` - The temperature value.
|
||||
- `max_tokens?: number` - The max tokens value.
|
||||
- `mode: string` - The mode. one of `model`, `submodel`, `memory`, `emotion`, `otherAx`, `translate`
|
||||
- `Promise<{success:boolean,content:string|ReadableStream<string>}>` - The provider result.
|
||||
- `success: boolean` - If the provider was successful.
|
||||
|
||||
@@ -1402,7 +1402,8 @@ async function requestPlugin(arg:RequestDataArgumentExtended):Promise<requestDat
|
||||
const d = v2Function ? (await v2Function(applyParameters({
|
||||
prompt_chat: formated,
|
||||
mode: arg.mode,
|
||||
bias: []
|
||||
bias: [],
|
||||
max_tokens: maxTokens,
|
||||
}, [
|
||||
'frequency_penalty','min_p','presence_penalty','repetition_penalty','top_k','top_p','temperature'
|
||||
], {}, arg.mode) as any)) : await pluginProcess({
|
||||
|
||||
Reference in New Issue
Block a user