feat: add GitLab Duo provider extension example

- Delegates to pi-ai's built-in Anthropic/OpenAI streaming
- OAuth support with GitLab's bundled client ID
- Direct access token caching (25 min TTL)
- Models: duo-chat-opus/sonnet/haiku-4-5, duo-chat-gpt-5-1/mini/codex
- No external dependencies beyond pi-ai
This commit is contained in:
Mario Zechner 2026-01-24 23:51:05 +01:00
parent a57eb399eb
commit 3e6d8dc72a
5 changed files with 430 additions and 32 deletions

View file

@ -0,0 +1,16 @@
{
"name": "pi-extension-gitlab-duo",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"clean": "echo 'nothing to clean'",
"build": "echo 'nothing to build'",
"check": "echo 'nothing to check'"
},
"pi": {
"extensions": [
"./index.ts"
]
}
}