🔧 (ollama.ts): update client post request to use getUri method for endpoint URL construction (#404)
This commit is contained in:
@@ -28,7 +28,10 @@ export class OllamaAi implements AiEngine {
|
|||||||
stream: false
|
stream: false
|
||||||
};
|
};
|
||||||
try {
|
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;
|
const message = response.data.message;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user