mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
fix(site): raise issue draft ai token budget for reasoning models
This commit is contained in:
@@ -338,7 +338,9 @@ export async function createIssuePreview(
|
||||
body: JSON.stringify({
|
||||
model,
|
||||
temperature: 0.2,
|
||||
max_tokens: 1800,
|
||||
// Reasoning models spend the budget on reasoning_content before content,
|
||||
// so keep generous headroom to avoid truncated (unparseable) drafts.
|
||||
max_tokens: 6000,
|
||||
messages: [
|
||||
{ role: "system", content: issuePrompt(language) },
|
||||
{ role: "user", content: userContent },
|
||||
|
||||
Reference in New Issue
Block a user