diff --git a/apps/shinkai-desktop/src/components/chat/chat-action-bar/chat-config-action-bar.tsx b/apps/shinkai-desktop/src/components/chat/chat-action-bar/chat-config-action-bar.tsx index 0ceeb55ca..4938bac32 100644 --- a/apps/shinkai-desktop/src/components/chat/chat-action-bar/chat-config-action-bar.tsx +++ b/apps/shinkai-desktop/src/components/chat/chat-action-bar/chat-config-action-bar.tsx @@ -45,6 +45,7 @@ export const chatConfigFormSchema = z.object({ temperature: z.number(), topP: z.number(), topK: z.number(), + max_tokens: z.number(), }); export type ChatConfigFormSchemaType = z.infer; @@ -72,6 +73,46 @@ function ChatConfigForm({ form }: ChatConfigFormProps) { )} /> + ( + + + + +
+
+ + + {field.value} + +
+ { + field.onChange(vals[0]); + }} + step={100} + value={[field.value]} + /> +
+
+ + Output Tokens determines the maximum number of tokens (words or parts of words) that the AI can generate in a single response. Higher values allow for longer responses. + +
+
+
+ )} + />