From 9f1cc9465d472493d999d17cf5f1ddff62d8579c Mon Sep 17 00:00:00 2001 From: johnd0e <1838643+johnd0e@users.noreply.github.com> Date: Sat, 12 Jul 2025 22:14:06 +0200 Subject: [PATCH] ..and again --- README.md | 43 ++++++++++++++++++------------------------- src/worker.mjs | 6 +++--- 2 files changed, 21 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 854ad5f..4d038b4 100644 --- a/README.md +++ b/README.md @@ -1,48 +1,41 @@ ## Why > [!TIP] -> [GitHub Copilot](https://docs.github.com/en/copilot/quickstart) is free to use for -> verified [students], [teachers], and [maintainers] of popular open source projects. -
+> [GitHub Copilot Pro] is [free] to use for verified students, teachers, +> and maintainers of popular open source projects. -- Students and teachers: visit [Benefits for everyone at school](https://education.github.com/benefits) -- Maintainers: check https://github.com/github-copilot/free_signup - If you are not eligible, it indicates that your project needs more stars. -
+Other options include limited experience of Copilot without a paid plan, or individual Copilot plan. -Even if you don't meet the eligibility criteria, the paid subscription -([_Individual_](https://docs.github.com/en/copilot/copilot-individual/about-github-copilot-individual)) -is more affordable than [OpenAI's offering](https://chat.openai.com/#pricing). -It costs only $10 and still provides access to the latest generative models from -[OpenAI](https://openai.com/news/), [Anthropic](https://www.anthropic.com/) and [Google](https://ai.google/get-started/our-models/). +[GitHub Copilot Pro]: https://docs.github.com/en/copilot/concepts/copilot-billing/about-individual-copilot-plans-and-benefits#github-copilot-pro +[free]: https://docs.github.com/en/copilot/how-tos/manage-your-account/getting-free-access-to-copilot-pro-as-a-student-teacher-or-maintainer -> [!NOTE] -> If the above options are not suitable for you - consider trying completely -> free alternative: [openai-gemini](https://github.com/PublicAffairs/openai-gemini). - -[students]: https://github.com/pricing#i-am-a-student-can-i-get-access-to-github-copilot-for-free -[teachers]: https://github.com/pricing#i-am-a-teacher-can-i-get-access-to-github-copilot-for-free -[maintainers]: https://github.com/pricing#i-work-on-open-source-projects-can-i-get-access-to-github-copilot-for-free ## What -GitHub Copilot chat is exclusively available through selected IDEs. +[GitHub Copilot] provides access to the latest generative models from [OpenAI], [Anthropic] and [Google]. + +Is is available through selected [IDEs]. The `openai-github-copilot` project enables its use across a broader range of tools. It provides a general OpenAI-compatible API that can be deployed at no cost. (However, a GitHub Copilot subscription is still required.) +[GitHub Copilot]: https://docs.github.com/en/copilot/get-started/what-is-github-copilot +[OpenAI]: https://openai.com/news/product-releases/ +[Anthropic]: https://www.anthropic.com/ +[Google]: https://deepmind.google/models/gemini/ +[IDEs]: https://docs.github.com/en/copilot/how-tos/completions/getting-code-suggestions-in-your-ide-with-github-copilot + ## Serverless? Although it runs in the cloud, it does not require server maintenance. -It can be easily deployed to Cloudflare for free -(with generous [limits](https://developers.cloudflare.com/workers/platform/limits/#worker-limits) -suitable for personal use). +It can be easily deployed to Cloudflare for free (with generous [limits] suitable for personal use). > [!TIP] -> Running the proxy endpoint locally is also an option, -> though it's more appropriate for development use. +> Running the proxy endpoint locally is also an option! + +[limits]: https://developers.cloudflare.com/workers/platform/limits/#worker-limits ## How to start diff --git a/src/worker.mjs b/src/worker.mjs index 219e661..9771acf 100644 --- a/src/worker.mjs +++ b/src/worker.mjs @@ -58,9 +58,9 @@ const handleOPTIONS = async () => { }); }; -const chatVersion = "0.26.5"; -const vscodeVersion = "1.99.3"; -const apiVersion = "2023-07-07"; +const chatVersion = "0.29.0"; +const vscodeVersion = "1.102.0"; +const apiVersion = "2025-04-01"; const getToken = async (authKey) => { if (authKey.startsWith("sk-")) { // dumb attempt to hide real auth key from malicious web services const decoded = atob(authKey.substring(3));