mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-04-25 00:36:32 +02:00
Increase Ollama context window to 16K tokens
Default 4K context was truncating the HTML before the model could see it. Added num_ctx: 16384 to all 4 Ollama API calls to ensure the full ~25K character HTML content fits in context. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
57ba90ee25
commit
aad5a797b6
1 changed files with 12 additions and 0 deletions
|
|
@ -293,6 +293,9 @@ async function extractWithOllama(
|
|||
],
|
||||
stream: false,
|
||||
think: false, // Disable thinking mode for Qwen3/DeepSeek models
|
||||
options: {
|
||||
num_ctx: 16384, // Increase context window for large HTML content
|
||||
},
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
|
|
@ -388,6 +391,9 @@ async function verifyWithOllama(
|
|||
messages: [{ role: 'user', content: prompt }],
|
||||
stream: false,
|
||||
think: false, // Disable thinking mode for Qwen3/DeepSeek models
|
||||
options: {
|
||||
num_ctx: 16384, // Increase context window for large HTML content
|
||||
},
|
||||
},
|
||||
{
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
|
@ -481,6 +487,9 @@ async function verifyStockStatusWithOllama(
|
|||
messages: [{ role: 'user', content: prompt }],
|
||||
stream: false,
|
||||
think: false, // Disable thinking mode for Qwen3/DeepSeek models
|
||||
options: {
|
||||
num_ctx: 16384, // Increase context window for large HTML content
|
||||
},
|
||||
},
|
||||
{
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
|
@ -937,6 +946,9 @@ async function arbitrateWithOllama(
|
|||
messages: [{ role: 'user', content: prompt }],
|
||||
stream: false,
|
||||
think: false, // Disable thinking mode for Qwen3/DeepSeek models
|
||||
options: {
|
||||
num_ctx: 16384, // Increase context window for large HTML content
|
||||
},
|
||||
},
|
||||
{
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue