@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamp10/agentforge",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "AgentForge worker — connect your machine to agentforge.ai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- const effectiveModel = (agentModel && agentModel !== 'Default') ? agentModel : this.model;
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 };