mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
fix: use x-completion-request-id header
This commit is contained in:
@@ -80,8 +80,8 @@ export class GlamaHandler implements ApiHandler {
|
|||||||
stream: true,
|
stream: true,
|
||||||
}).withResponse();
|
}).withResponse();
|
||||||
|
|
||||||
const completionRequestUuid = response.headers.get(
|
const completionRequestId = response.headers.get(
|
||||||
'x-completion-request-uuid',
|
'x-completion-request-id',
|
||||||
);
|
);
|
||||||
|
|
||||||
for await (const chunk of completion) {
|
for await (const chunk of completion) {
|
||||||
@@ -96,7 +96,7 @@ export class GlamaHandler implements ApiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`https://glama.ai/api/gateway/v1/completion-requests/${completionRequestUuid}`, {
|
const response = await axios.get(`https://glama.ai/api/gateway/v1/completion-requests/${completionRequestId}`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${this.options.glamaApiKey}`,
|
Authorization: `Bearer ${this.options.glamaApiKey}`,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user