Skip to content

Commit 9ad281a

Browse files
🔧 (ollama.ts): update client post request to use getUri method for endpoint URL construction (#404)
1 parent 1ce357b commit 9ad281a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/engine/ollama.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export class OllamaAi implements AiEngine {
2828
stream: false
2929
};
3030
try {
31-
const response = await this.client.post('', params);
31+
const response = await this.client.post(
32+
this.client.getUri(this.config),
33+
params
34+
);
3235

3336
const message = response.data.message;
3437

0 commit comments

Comments
 (0)