Skip to content

Commit 8284efc

Browse files
punkpeyemrubens
authored andcommitted
fix: use x-completion-request-id header
1 parent 6b04892 commit 8284efc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/providers/glama.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export class GlamaHandler implements ApiHandler {
8080
stream: true,
8181
}).withResponse();
8282

83-
const completionRequestUuid = response.headers.get(
84-
'x-completion-request-uuid',
83+
const completionRequestId = response.headers.get(
84+
'x-completion-request-id',
8585
);
8686

8787
for await (const chunk of completion) {
@@ -96,7 +96,7 @@ export class GlamaHandler implements ApiHandler {
9696
}
9797

9898
try {
99-
const response = await axios.get(`https://glama.ai/api/gateway/v1/completion-requests/${completionRequestUuid}`, {
99+
const response = await axios.get(`https://glama.ai/api/gateway/v1/completion-requests/${completionRequestId}`, {
100100
headers: {
101101
Authorization: `Bearer ${this.options.glamaApiKey}`,
102102
},

0 commit comments

Comments
 (0)