Skip to content

Commit 82158d2

Browse files
STetsingyann300
authored andcommitted
fixed e2e
1 parent 42cc9c5 commit 82158d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/remix-ai-core/src/inferencers/remote/remoteInference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class RemoteInferencer implements ICompletions, IGeneration {
2626
const requestURL = rType === AIRequestType.COMPLETION ? this.completion_url : this.api_url
2727

2828
try {
29-
const options = { headers: { 'Content-Type': 'application/json', }, timeout: 3000 }
29+
const options = AIRequestType.COMPLETION ? { headers: { 'Content-Type': 'application/json', }, timeout: 3000 } : { headers: { 'Content-Type': 'application/json', } }
3030
const result = await axios.post(requestURL, payload, options)
3131

3232
switch (rType) {

0 commit comments

Comments
 (0)