Changeset 0.5.0 (#35)
This commit is contained in:
@@ -118,6 +118,8 @@ const API = {
|
||||
async streamCompletion(chatId, content, model, signal) {
|
||||
const body = { chat_id: chatId, content, stream: true };
|
||||
if (model) body.model = model;
|
||||
// Only send max_tokens if user explicitly set it (non-zero = override)
|
||||
if (App.settings.maxTokens > 0) body.max_tokens = App.settings.maxTokens;
|
||||
|
||||
let resp = await fetch('/api/v1/chat/completions', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user