🔧 (ollama.ts): update client post request to use getUri method for endpoint URL construction (#404)

This commit is contained in:
unconstructive
2024-09-02 00:18:01 -07:00
committed by GitHub
parent 1ce357b023
commit 9ad281a4ee

View File

@@ -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;