Files
openclaw/extensions/github-copilot/embeddings.ts
Pengfei Ni 55d00f335a feat(github-copilot): add embedding provider for memory search
Add GitHub Copilot as a memory search embedding provider so users with
Copilot subscriptions can use embeddings without a separate API key.

- Extract resolveFirstGithubToken to shared auth.ts for reuse
- Add MemoryEmbeddingProviderAdapter with dynamic model discovery
  via the Copilot /models endpoint, auto-selecting the best
  available embedding model (prefers text-embedding-3-small)
- Register the provider at auto-selection priority 15 (between
  local and OpenAI) and declare the memoryEmbeddingProviders
  contract in the plugin manifest
- Match models by ID pattern when supported_endpoints is empty,
  as the Copilot API lists embedding models without declaring
  their endpoint
- Add docs for memory search provider tables, config reference,
  and the GitHub Copilot provider page
2026-04-15 10:38:39 +01:00

8.2 KiB