mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -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,
|
||||
}).withResponse();
|
||||
|
||||
const completionRequestUuid = response.headers.get(
|
||||
'x-completion-request-uuid',
|
||||
const completionRequestId = response.headers.get(
|
||||
'x-completion-request-id',
|
||||
);
|
||||
|
||||
for await (const chunk of completion) {
|
||||
@@ -96,7 +96,7 @@ export class GlamaHandler implements ApiHandler {
|
||||
}
|
||||
|
||||
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: {
|
||||
Authorization: `Bearer ${this.options.glamaApiKey}`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user