Compare commits
2 Commits
299ea3d4fe
...
a7c304ccb5
| Author | SHA1 | Date | |
|---|---|---|---|
| a7c304ccb5 | |||
| f622912f2e |
@@ -220,6 +220,10 @@ namespace MoneyMap.Services
|
||||
{
|
||||
var trimmed = content?.Trim() ?? "";
|
||||
|
||||
// Strip <think>...</think> blocks from reasoning models (e.g. Qwen3-VL-Thinking)
|
||||
trimmed = System.Text.RegularExpressions.Regex.Replace(
|
||||
trimmed, @"<think>[\s\S]*?</think>", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase).Trim();
|
||||
|
||||
// Strip markdown code fences
|
||||
if (trimmed.StartsWith("```json"))
|
||||
{
|
||||
@@ -816,7 +820,7 @@ namespace MoneyMap.Services
|
||||
}
|
||||
}
|
||||
},
|
||||
max_tokens = 4096,
|
||||
max_tokens = 16384,
|
||||
temperature = 0.1
|
||||
};
|
||||
|
||||
@@ -898,7 +902,7 @@ namespace MoneyMap.Services
|
||||
OpenAIToolUseHelper.BuildToolsArray(tools),
|
||||
toolExecutor,
|
||||
maxToolRounds,
|
||||
maxTokens: 4096,
|
||||
maxTokens: 16384,
|
||||
_logger);
|
||||
}
|
||||
catch (TaskCanceledException ex) when (ex.InnerException is TimeoutException)
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
"AllowedHosts": "*",
|
||||
"AI": {
|
||||
"ModelsEndpoint": "http://athena.lan:11434",
|
||||
"ReceiptParsingModel": "llamacpp:Qwen3-VL-32B-Instruct-Q8_0"
|
||||
"ReceiptParsingModel": "llamacpp:Qwen3-VL-32B-Thinking-Q8_0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user