MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / buildHeaders

Method buildHeaders

packages/core/src/common/request.ts:86–97  ·  view source on GitHub ↗
({
		headers,
	}: {
		headers?: Record<string, string>;
	})

Source from the content-addressed store, hash-verified

84 }
85
86 private buildHeaders({
87 headers,
88 }: {
89 headers?: Record<string, string>;
90 }): Record<string, string> {
91 return {
92 'Content-Type': 'application/json',
93 Authorization: `Bearer ${this.config.apiKey}`,
94 'LB-LLM-Key': this.config.llmKey ?? '',
95 ...headers,
96 };
97 }
98
99 private async makeRequest({
100 url,

Callers 1

sendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected