22 Commits

Author SHA1 Message Date
johnd0e
d032cbfbda Scripts: option to specify client_id value 2025-07-13 15:18:05 +02:00
johnd0e
62130a8899 Fix a bug in get_copilot_token.py 2025-07-13 15:18:05 +02:00
johnd0e
7383d21c8e Use dedicated endpoint
individual/business/enterprise
2025-07-13 15:18:04 +02:00
johnd0e
c0a837adb6 Refactor (minor) 2025-07-13 15:18:04 +02:00
johnd0e
c7cc3f781c Remove cocopilot support 2025-07-13 15:18:03 +02:00
johnd0e
9407aeb905 /token: possibility to use other client_id
Such as:

- Iv23ctfURkiMfJ4xr5mv (GitHub Copilot for JetBrains IDEs)
- 01ab8ac9400c4e429b23 (Visual Studio Code)
2025-07-13 15:18:03 +02:00
johnd0e
9f1cc9465d ..and again 2025-07-13 15:18:03 +02:00
johnd0e
579dd29fab Update docs 2025-04-17 16:32:11 +02:00
johnd0e
56f10cf248 No need to mock models response anymore 2024-07-24 21:51:38 +02:00
johnd0e
e4983bc63a Completions response now contains model and system_fingerprint props 2024-07-24 21:51:38 +02:00
johnd0e
7e86db2f49 Update versions 2024-07-24 21:51:38 +02:00
johnd0e
75ee056f41 Fix README rendering
Circumvent weird gitea glitch
2024-03-25 17:53:41 +00:00
johnd0e
ebbe9b5ee9 Fix README as we are not on Github anymore 2024-03-15 01:38:27 +01:00
johnd0e
f108efd639 README 2024-03-15 01:36:26 +01:00
johnd0e
8524d960c5 Scripts 2024-03-15 01:21:48 +01:00
johnd0e
547d38240a Implement /token page
GitHub Copilot Token Generator
robots: https://developers.google.com/search/docs/crawling-indexing/block-indexing

Memo just in case: there were more alternative static serving possibilities:
- https://developers.cloudflare.com/workers/configuration/sites/start-from-worker/
- wrangler deploy --assets ./public
2024-03-09 21:33:35 +01:00
johnd0e
5059cffa15 Cache github token 2024-03-09 21:33:35 +01:00
johnd0e
645b9551c4 Rely on Transfer-Encoding header in order to find if response is streamed 2024-03-09 21:33:35 +01:00
johnd0e
04a31c912c Add github CI workflow 2024-03-09 21:33:32 +01:00
johnd0e
792b0936f1 Add wrangler files
https://developers.cloudflare.com/workers/wrangler/

- wrangler deploy
- wrangler dev
2024-03-09 21:32:54 +01:00
johnd0e
24ce97ea06 Initial implementation as Cloudflare Worker
Inspired by:
- https://github.com/haibbo/cf-openai-azure-proxy/raw/main/cf-openai-azure-proxy.js
- https://github.com/CaoYunzhou/cocopilot-gpt

Memo:
- https://developers.google.com/search/docs/crawling-indexing/block-indexing
2024-03-09 21:32:50 +01:00
johnd0e
93b406d678 Initial commit 2024-02-27 18:37:08 +01:00