pi-mono/packages/ai/src
m3 0ec20e157b
feat(ai): add Microsoft-Decision-1 classifier to GitHub Copilot (#11679)
Closes #11678

Changes:
- `catalog/providers/github-copilot.ts`: add `microsoft-decision-1` as a
`typesafe-system-one` classifier (text input, 32768 context, $0.042/M
input, Copilot's static headers).
- `src/providers/github-copilot.ts`: register the classifier and wrap
`typesafeSystemOneApi()` to add `/v1` to the base URL, since Copilot
serves `/v1/systemone` and the OAuth login replaces the base URL with
the account endpoint.
- README and `docs/models.md`: add the model to the classifier tables.

Tests:
- `test/classifier-models.test.ts`: with an OAuth credential, the
request goes to `https://api.enterprise.githubcopilot.com/v1/systemone`
with the Copilot headers, and the model stays available although
`availableModelIds` lists only chat models. With an API key, it goes to
`https://api.individual.githubcopilot.com/v1/systemone`. Both tests fail
without the wrapper.
- Ran against `api.enterprise.githubcopilot.com` with a Copilot login:
bool, choice, and score questions return answers and usage.

Co-authored-by: Hongwei Ma <11957602+Marvae@users.noreply.github.com>
2026-11-02 16:12:43 +01:00
..
api fix(ai): keep root $defs in Anthropic non-strict tool schemas 2026-11-02 13:12:50 +01:00
auth fix: harden handling of untrusted URLs, terminal text, and streamed data 2026-10-26 20:46:31 +01:00
compat feat(coding-agent): confirm device-code browser and clipboard actions 2026-10-22 21:38:58 +02:00
providers feat(ai): add Microsoft-Decision-1 classifier to GitHub Copilot (#11679) 2026-11-02 16:12:43 +01:00
utils Release v1.5.0 2026-11-02 11:38:21 +01:00
bedrock-provider.ts fix(ai): revert selective pi-ai base entrypoints 2026-06-22 12:54:32 +02:00
bun-oauth.ts feat(ai,coding-agent): add alternative sign in for the openai provider 2026-09-29 17:16:15 +02:00
cli.ts fix: harden handling of untrusted URLs, terminal text, and streamed data 2026-10-26 20:46:31 +01:00
compat.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
env-api-keys.ts feat(ai): support Azure Foundry Chat Completions deployments (#9714) 2026-10-05 09:46:48 +02:00
image-models.ts feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
images-api-registry.ts feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
images.ts feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
index.ts feat(ai,agent,coding-agent): validate tool arguments with pi-schema, drop TypeBox 2026-11-01 10:08:42 +00:00
legacy-api-aliases.ts fix(ai): restore legacy compat stream aliases 2026-06-23 22:20:20 +02:00
model-catalog.ts feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
models-store.ts feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
models.generated.ts feat(ai): refactor provider definitions (#11368) 2026-10-28 11:06:10 +01:00
models.ts feat(ai): add totalFromProvider flag to usage cost (#11178) 2026-10-22 09:02:01 +02:00
oauth.ts feat(coding-agent): replace model registry with model runtime 2026-07-14 17:48:45 +02:00
session-resources.ts fix(coding-agent): decouple codex session cleanup 2026-05-04 00:45:56 +02:00
telemetry.ts fix(ai,chord,durable,coding-agent): parse streamed tool-call arguments incrementally (fixes #9265) 2026-10-24 08:00:07 +00:00
types.ts feat(ai,agent,coding-agent): validate tool arguments with pi-schema, drop TypeBox 2026-11-01 10:08:42 +00:00