Add Gemini interactions protocol support

This commit is contained in:
musistudio 2026-07-03 11:44:47 +08:00
parent 89d2d2394c
commit 0d51897d18
18 changed files with 294 additions and 31 deletions

View file

@ -133,7 +133,7 @@ For larger configs, pass a manifest:
| `name` | Provider display name |
| `base_url` | Provider API Base URL, required for direct imports |
| `api_key` | Optional provider API key |
| `protocol` | Protocol, one of `openai_chat_completions`, `openai_responses`, `anthropic_messages`, `gemini_generate_content` |
| `protocol` | Protocol, one of `openai_chat_completions`, `openai_responses`, `anthropic_messages`, `gemini_generate_content`, `gemini_interactions` |
| `models` | Model list. Use comma/newline-separated text in HTML, or a string/array in JavaScript |
| `icon` | Provider icon URL |
| `source` | Provider website or config source |
@ -261,7 +261,7 @@ Complete manifest example:
| `name` | Provider display name |
| `base_url` | Provider API Base URL, required |
| `api_key` | Optional provider API key |
| `protocol` | Protocol, one of `openai_chat_completions`, `openai_responses`, `anthropic_messages`, `gemini_generate_content` |
| `protocol` | Protocol, one of `openai_chat_completions`, `openai_responses`, `anthropic_messages`, `gemini_generate_content`, `gemini_interactions` |
| `models` | Model list, comma-separated, newline-separated, or repeated |
| `icon` | Provider icon URL |
| `source` | Provider website or config source |

View file

@ -133,7 +133,7 @@ CCR 也提供了一个无框架的按钮脚本,供应商可以嵌入到自己
| `name` | Provider 展示名称 |
| `base_url` | Provider API Base URL直链导入时必填 |
| `api_key` | 可选 Provider API Key |
| `protocol` | 协议类型,支持 `openai_chat_completions``openai_responses``anthropic_messages``gemini_generate_content` |
| `protocol` | 协议类型,支持 `openai_chat_completions``openai_responses``anthropic_messages``gemini_generate_content``gemini_interactions` |
| `models` | 模型列表。HTML 中用逗号或换行分隔JS 中可传字符串或数组 |
| `icon` | Provider 图标 URL |
| `source` | Provider 官网或配置来源 |
@ -261,7 +261,7 @@ Manifest 可以把供应商信息放在顶层 `provider` 对象中:
| `name` | Provider 展示名称 |
| `base_url` | Provider API Base URL必填 |
| `api_key` | 可选 Provider API Key |
| `protocol` | 协议类型,支持 `openai_chat_completions``openai_responses``anthropic_messages``gemini_generate_content` |
| `protocol` | 协议类型,支持 `openai_chat_completions``openai_responses``anthropic_messages``gemini_generate_content``gemini_interactions` |
| `models` | 模型列表,支持逗号或换行分隔,也可以重复传入 |
| `icon` | Provider 图标 URL |
| `source` | Provider 官网或配置来源 |