MCPcopy Create free account
hub / github.com/anomalyco/opencode / base

Function base

packages/opencode/src/plugin/github-copilot/copilot.ts:26–28  ·  view source on GitHub ↗
(enterpriseUrl?: string)

Source from the content-addressed store, hash-verified

24}
25
26function base(enterpriseUrl?: string) {
27 return enterpriseUrl ? `https://copilot-api.${normalizeDomain(enterpriseUrl)}` : "https://api.githubcopilot.com"
28}
29
30// Check if a message is a synthetic user msg used to attach an image from a tool call
31function imgMsg(msg: any): boolean {

Callers 1

modelsFunction · 0.85

Calls 1

normalizeDomainFunction · 0.85

Tested by

no test coverage detected