@hamp10/agentforge 0.2.5 → 0.2.6
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/package.json +1 -1
- package/src/OllamaAgent.js +5 -2
package/package.json
CHANGED
package/src/OllamaAgent.js
CHANGED
|
@@ -160,8 +160,11 @@ export class OllamaAgent extends EventEmitter {
|
|
|
160
160
|
const startTime = Date.now();
|
|
161
161
|
const controller = new AbortController();
|
|
162
162
|
|
|
163
|
-
// Use per-agent model override if provided (and not the placeholder 'Default')
|
|
164
|
-
|
|
163
|
+
// Use per-agent model override if provided (and not the placeholder 'Default').
|
|
164
|
+
// Strip 'ollama/' prefix — catalog returns IDs like 'ollama/qwen3-vl:8b' but
|
|
165
|
+
// Ollama's API expects bare names like 'qwen3-vl:8b'.
|
|
166
|
+
const rawModel = (agentModel && agentModel !== 'Default') ? agentModel : this.model;
|
|
167
|
+
const effectiveModel = rawModel.startsWith('ollama/') ? rawModel.slice(7) : rawModel;
|
|
165
168
|
|
|
166
169
|
// Fake proc-like object so worker.js pid checks don't crash
|
|
167
170
|
const fakeProc = { pid: null };
|