Skip to content

Commit

Permalink
🔧 (ollama.ts): update client post request to use getUri method for en…
Browse files Browse the repository at this point in the history
…dpoint URL construction (#404)
  • Loading branch information
unconstructive authored Sep 2, 2024
1 parent 1ce357b commit 9ad281a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engine/ollama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export class OllamaAi implements AiEngine {
stream: false
};
try {
const response = await this.client.post('', params);
const response = await this.client.post(
this.client.getUri(this.config),
params
);

const message = response.data.message;

Expand Down

0 comments on commit 9ad281a

Please sign in to comment.