From 135f1e169b43041bb516cba166328b4c8ed04816 Mon Sep 17 00:00:00 2001 From: JohnnyZ93 Date: Thu, 23 Oct 2025 00:44:44 +0800 Subject: [PATCH] feat: add OAI Compatible Provider for Copilot to integration list --- README.md | 5 +++ README_cn.md | 5 +++ README_es.md | 5 +++ README_ja.md | 5 +++ README_zh_tw.md | 5 +++ docs/oai-compatible-copilot/README.md | 48 ++++++++++++++++++++++++ docs/oai-compatible-copilot/README_cn.md | 48 ++++++++++++++++++++++++ 7 files changed, 121 insertions(+) create mode 100644 docs/oai-compatible-copilot/README.md create mode 100644 docs/oai-compatible-copilot/README_cn.md diff --git a/README.md b/README.md index ec53734d..93a767a3 100644 --- a/README.md +++ b/README.md @@ -817,6 +817,11 @@ The purpose is to build infrastructure in the field of large models, through the AI Toolkit AI Toolkit for Visual Studio Code is a comprehensive extension that empowers developers and AI engineers to build, test, and deploy intelligent applications using generative AI models. + + Icon + OAI Compatible Provider for Copilot + An open-source VS Code extension to use openai compatible inference providers in GitHub Copilot. +

^ Back to Contents ^

diff --git a/README_cn.md b/README_cn.md index ca6bd73a..ecfdd547 100644 --- a/README_cn.md +++ b/README_cn.md @@ -701,6 +701,11 @@ AI Toolkit Visual Studio Code 的 AI Toolkit 是一个综合性扩展,为开发人员和 AI 工程师提供使用生成式 AI 模型构建、测试和部署智能应用程序的能力。 + + Icon + OAI Compatible Provider for Copilot + 开源的 VS Code 扩展,可在 GitHub Copilot 中使用 OpenAI 兼容的推理提供商。 +

^ 返回目录 ^

diff --git a/README_es.md b/README_es.md index f9d6fea0..cd2f34d9 100644 --- a/README_es.md +++ b/README_es.md @@ -728,6 +728,11 @@ Integra la API de DeepSeek en softwares populares. Accede a la [Plataforma Abier AI Toolkit AI Toolkit para Visual Studio Code es una extensión integral que permite a desarrolladores e ingenieros de IA construir, probar y desplegar aplicaciones inteligentes utilizando modelos de IA generativa. + + Icon + OAI Compatible Provider for Copilot + Una extensión de código abierto para VS Code para usar proveedores de inferencia compatibles con OpenAI en GitHub Copilot. +

^ Volver al índice ^

diff --git a/README_ja.md b/README_ja.md index 884fb6bf..25d1787d 100644 --- a/README_ja.md +++ b/README_ja.md @@ -609,6 +609,11 @@ DeepSeek API を人気のソフトウェアに統合します。API キーを取 AI Toolkit Visual Studio Code 用 AI Toolkit は、開発者や AI エンジニアが生成 AI モデルを使用してインテリジェントなアプリケーションを構築、テスト、およびデプロイすることを可能にする包括的な拡張機能です。 + + Icon + OAI Compatible Provider for Copilot + GitHub Copilot で OpenAI 互換の推論プロバイダーを使用するためのオープンソースの VS Code 拡張機能です。 +

^ 目次に戻る ^

diff --git a/README_zh_tw.md b/README_zh_tw.md index 8354d439..47a17304 100644 --- a/README_zh_tw.md +++ b/README_zh_tw.md @@ -789,6 +789,11 @@ AI Toolkit Visual Studio Code 的 AI Toolkit 是一個綜合性擴展,為開發人員和 AI 工程師提供使用生成式 AI 模型構建、測試和部署智能應用程序的能力。 + + Icon + OAI Compatible Provider for Copilot + 開源的 VS Code 擴充功能,可在 GitHub Copilot 中使用 OpenAI 相容的推理提供者。 +

^ 返回目錄 ^

diff --git a/docs/oai-compatible-copilot/README.md b/docs/oai-compatible-copilot/README.md new file mode 100644 index 00000000..ab5d5423 --- /dev/null +++ b/docs/oai-compatible-copilot/README.md @@ -0,0 +1,48 @@ + + +# [OAI Compatible Provider for Copilot](https://marketplace.visualstudio.com/items?itemName=johnny-zhao.oai-compatible-copilot) + +An open-source VS Code extension to use openai compatible inference providers in GitHub Copilot. + +[Source Code](https://github.com/JohnnyZ93/oai-compatible-copilot) + +[VS Code Chat Provider API](https://code.visualstudio.com/api/extension-guides/ai/language-model-chat-provider) + +## ✨ Features +- Supports almost all OpenAI-compatible providers, such as ModelScope, DeepSeek... +- Supports vision models. +- Offers additional configuration options for chat requests. +- Supports control model thinking and reasoning content show in chat interface. +- Supports configuring models from multiple providers simultaneously, automatically managing API keys without switch them repeatedly. +- Supports defining multiple configurations for the same model ID with different settings (e.g. thinking enable/disable for GLM-4.6). + +## Requirements +- VS Code 1.104.0 or higher. +- DeepSeek API key. + +## ⚡ Integrate with DeepSeek API +1. Install the OAI Compatible Provider for Copilot extension [here](https://marketplace.visualstudio.com/items?itemName=johnny-zhao.oai-compatible-copilot). +2. Open VS Code Settings and configure `oaicopilot.baseUrl` and `oaicopilot.models`. +3. Open Github Copilot Chat interface. +4. Click the model picker and select "Manage Models...". +5. Choose "OAI Compatible" provider. +6. Enter your API key — it will be saved locally. +7. Select the DeepSeek models by your configuration. + +```json +"oaicopilot.baseUrl": "https://api.deepseek.com/v1", +"oaicopilot.models": [ + { + "id": "deepseek-chat", + "owned_by": "deepseek", + "context_length": 128000, + "max_tokens": 8000 + }, + { + "id": "deepseek-reasoner", + "owned_by": "deepseek", + "context_length": 128000, + "max_tokens": 16000 + } +] +``` diff --git a/docs/oai-compatible-copilot/README_cn.md b/docs/oai-compatible-copilot/README_cn.md new file mode 100644 index 00000000..874d928a --- /dev/null +++ b/docs/oai-compatible-copilot/README_cn.md @@ -0,0 +1,48 @@ + + +# [OAI Compatible Provider for Copilot](https://marketplace.visualstudio.com/items?itemName=johnny-zhao.oai-compatible-copilot) + +开源的 VS Code 扩展,可在 GitHub Copilot 中使用 OpenAI 兼容的推理提供商。 + +[源代码](https://github.com/JohnnyZ93/oai-compatible-copilot) + +[VS Code Chat Provider API](https://code.visualstudio.com/api/extension-guides/ai/language-model-chat-provider) + +## ✨ 特性 +- 支持几乎所有 OpenAI 兼容的提供商,如 ModelScope、DeepSeek... +- 支持视觉模型 +- 为聊天请求提供额外的配置选项 +- 支持在聊天界面中控制模型的思考和推理内容显示 +- 支持同时配置来自多个提供商的模型,自动管理 API 密钥而无需重复切换 +- 支持为同一模型 ID 定义具有不同设置的多个配置(例如 GLM-4.6 的思考启用/禁用) + +## 要求 +- VS Code 1.104.0 或更高版本 +- DeepSeek API 密钥 + +## ⚡ 与 DeepSeek API 集成 +1. 安装 OAI Compatible Provider for Copilot 扩展 [此处](https://marketplace.visualstudio.com/items?itemName=johnny-zhao.oai-compatible-copilot) +2. 打开 VS Code 设置并配置 `oaicopilot.baseUrl` 和 `oaicopilot.models` +3. 打开 GitHub Copilot Chat 界面 +4. 点击模型选择器并选择 "Manage Models..." +5. 选择 "OAI Compatible" 提供商 +6. 输入您的 API 密钥 — 它将保存在本地 +7. 选择您配置的 DeepSeek 模型 + +```json +"oaicopilot.baseUrl": "https://api.deepseek.com/v1", +"oaicopilot.models": [ + { + "id": "deepseek-chat", + "owned_by": "deepseek", + "context_length": 128000, + "max_tokens": 8000 + }, + { + "id": "deepseek-reasoner", + "owned_by": "deepseek", + "context_length": 128000, + "max_tokens": 16000 + } +] +```