Преглед изворни кода

feat: identify consumer using tags

Frank пре 1 година
родитељ
комит
a66fb7b7fe
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      src/api/providers/glama.ts

+ 8 - 0
src/api/providers/glama.ts

@@ -101,6 +101,14 @@ export class GlamaHandler implements ApiHandler, SingleCompletionHandler {
 				{
 					headers: {
 						Authorization: `Bearer ${this.options.glamaApiKey}`,
+						"X-Glama-Metadata": JSON.stringify({
+							labels: [
+								{
+									key: "app",
+									value: "vscode.rooveterinaryinc.roo-cline",
+								},
+							],
+						}),
 					},
 				},
 			)