garriga 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -226,14 +226,15 @@ class localLLM {
|
|
|
226
226
|
num_ctx: +process.env.MAX_CONTEXT_FRAUD || 65536,
|
|
227
227
|
temperature: +process.env.TEMPERATURE_FRAUD || 0.1,
|
|
228
228
|
num_predict: +process.env.MAX_TOKENS_FRAUD || 2500,
|
|
229
|
-
top_k: 40,
|
|
230
|
-
top_p: 0.9,
|
|
229
|
+
top_k: +process.env.TOP_K_FRAUD || 40,
|
|
230
|
+
top_p: +process.env.TOP_P_FRAUD || 0.9,
|
|
231
231
|
},
|
|
232
232
|
};
|
|
233
233
|
const response = await axios.post(this.apiUrlOllama, ollamaPayload, {
|
|
234
234
|
headers: {
|
|
235
235
|
"Content-Type": "application/json",
|
|
236
236
|
},
|
|
237
|
+
timeout: +process.env.TIMEOUT_OLLAMA_FRAUD || 300000,
|
|
237
238
|
});
|
|
238
239
|
|
|
239
240
|
return response?.data.response;
|