MCPcopy Index your code
hub / github.com/continuedev/continue / _mergeUserAgentIntoRequestOptions

Function _mergeUserAgentIntoRequestOptions

extensions/cli/src/config.ts:28–39  ·  view source on GitHub ↗

* Merges user-agent header into request options

(
  requestOptions: ModelConfig["requestOptions"],
)

Source from the content-addressed store, hash-verified

26 * Merges user-agent header into request options
27 */
28function _mergeUserAgentIntoRequestOptions(
29 requestOptions: ModelConfig["requestOptions"],
30): ModelConfig["requestOptions"] {
31 return {
32 ...requestOptions,
33 headers: {
34 ...requestOptions?.headers,
35 "user-agent": getUserAgent(),
36 "x-continue-unique-id": getUniqueId(),
37 },
38 };
39}
40
41/**
42 * Creates an LLM API instance from a ModelConfig and auth configuration

Callers

nothing calls this directly

Calls 2

getUserAgentFunction · 0.85
getUniqueIdFunction · 0.50

Tested by

no test coverage detected