Przeglądaj źródła

feat: identify consumer using tags

Frank 1 rok temu
rodzic
commit
a66fb7b7fe
1 zmienionych plików z 8 dodań i 0 usunięć
  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",
+								},
+							],
+						}),
 					},
 				},
 			)