chatgpt-adapter
集成了openai-api、bing、gemini、coze、claude、绘画 多款AI的聊天接口适配到 OpenAI API 标准接口服务端。
Stars: 521
ChatGPT-Adapter is an interface service that integrates various free services together. It provides a unified interface specification and integrates services like Bing, Claude-2, Gemini. Users can start the service by running the linux-server script and set proxies if needed. The tool offers model lists for different adapters, completion dialogues, authorization methods for different services like Claude, Bing, Gemini, Coze, and Lmsys. Additionally, it provides a free drawing interface with options like coze.dall-e-3, sd.dall-e-3, xl.dall-e-3, pg.dall-e-3 based on user-provided Authorization keys. The tool also supports special flags for enhanced functionality.
README:
一款将免费服务整合到一起的ChatGPT接口服务!
*添加实验性toolCall能力,尝试让没有toolCall能力的AI也能执行任务*
MacOS | Window | Linux
./linux-server -h
>>>>>
GPT接口适配器。统一适配接口规范,集成了bing、claude-2,gemini...
项目地址:https://github.com/bincooo/chatgpt-adapter
Usage:
ChatGPT-Adapter [flags]
Flags:
-h, --help help for ChatGPT-Adapter
--port int 服务端口 port (default 8080)
--proxies string 本地代理 proxies
-v, --version version for ChatGPT-Adapter
启动服务,如果网络不在服务区域,请尝试设置/替换 proxies
./linux-server --port 8080 --proxies socks5://127.0.0.1:7890
model 列表
[
{
"id": "claude",
"object": "model",
"created": 1686935002,
"owned_by": "claude-adapter"
},
{
"id": "bing",
"object": "model",
"created": 1686935002,
"owned_by": "bing-adapter"
},
{
"id": "coze",
"object": "model",
"created": 1686935002,
"owned_by": "coze-adapter"
},
{
"id": "gemini-1.0",
"object": "model",
"created": 1686935002,
"owned_by": "gemini-adapter"
},
{
"id": "command-r-plus",
"object": "model",
"created": 1686935002,
"owned_by": "cohere-adapter"
}
(更多模型请访问API获取) ...
]
completions 对话
/v1/chat/completions
/v1/object/completions
/proxies/v1/chat/completions
curl -i -X POST \
-H "Content-Type:application/json" \
-H "Authorization: xxx" \
-d \
'{
"stream": true,
"model": "coze",
"messages": [
{
"role": "user",
"content": "hi"
}
]
}' \
'http://127.0.0.1:8080/v1/chat/completions'
claude: 对IP十分严格
在
claude.ai
官网中登陆,浏览器cookies
中取出sessionKey
的值。在config.yaml
中的claude:
配置cookies
bing:
在
www.bing.com
官网中登陆,浏览器cookies
中取出_U
的值就是Authorization
参数
gemini:
在
ai.google.dev
中申请,获取 token凭证就是Authorization
参数
coze: ❗DEPRECATED❗ 已开始收费,无法使用了
在
www.coze.com
官网中登陆,浏览器cookies
中复制完整的cookie
就是Authorization
参数
》》支持指定bot模型 《《
格式 -> coze/botId-version-scene; 例子 -> coze/7353052833752694791-1712016747307-2
》》支持开发者模式《《
该模式下可修改全局变量TopP、Temperature、MaxTokens。 但是会出现排队情况,建议多账号轮询使用
cookie需为botId自己所属的账号, 结尾 o 固定
格式 -> coze/botId-spaceId-scene-o; 例子 -> coze/7353052833752694791-xxx-4-o
》》支持webSdk模式《《
该模式下不需要cookies, version 随意填写;; 尚未得知封控等级和限流机制,请勿滥用
格式 -> coze/botId-xxx-scene-w; 例子 -> coze/7353052833752694791-xxx-1000-w
tips: 由于内置配置经常变动,难以维护 改为配置化
请用户在
config.yaml
中修改 #31
lmsys:
无需cookie, model参数为
lmsys/
前缀,例:lmsys/claude-3-haiku-20240307
该接口有第三方监管,但用来进行正向对话还是不错的。对ip严苛fn_index、trigger_id 获取:进入主页,选择Direct Chat 发送一次对话,F12抓取join里的对应参数
两种配置化,1. 请求头携带
Authorization: [49, 109]
, 2. config.yaml中配置lmsys: [49, 109]
新增字典写法:
{ "claude-3-5-sonnet-20240620": [ 70, 124 ] }
custom:
实现chatgpt规范的上游AI接口,可用此定义来实现toolCall的功能 在原模型的名称前添加:
custom/
前缀,例:custom/freeGpt35
而后在
role
为user
、system
中的一个里添加<tool enabled />
即可开启toolCall需在
config.yaml
里配置custom-llm
属性
interpreter:
无需cookie, model参数为
open-interpreter
在配置中设置
interpreter
属性值,需配合 open-interpreter 使用,具体搭建过程移步 issue
you:
无需cookie, model参数为
you/xxx
, 具体有哪些请在启动服务后访问v1/models
查看。该接口需要配合
chrome/edge
使用,所以请务必保证你的电脑、服务器中安装了浏览器。配置步骤请移步:discussions
提供了 coze.dall-e-3
、 sd.dall-e-3
、xl.dall-e-3
、 pg.dall-e-3
、 google.dall-e-3
,它们会根据你提供的 Authorization
选择其中的一个
// 下面固定写法
// sd.dall-e-3
Authorization: sk-prodia-sd
// xl.dall-e-3
Authorization: sk-prodia-xl
// dalle-4k.dall-e-3
Authorization: sk-dalle-4k
// dalle-3-xl.dall-e-3
Authorization: sk-dalle-3-xl
// google.dall-e-3
Authorization: sk-google-xl
TIPS:如果Authorization没有匹配,则会随机在上面几个里选一个
api:
/v1/chat/generations
/v1/object/generations
/proxies/v1/chat/generations
curl -i -X POST \
-H "Content-Type:application/json" \
-H "Authorization: xxx" \
-d \
'{
"prompt":"一个二次元少女",
"style":"",
"model":"dall-e-3",
"n":1
}' \
'http://127.0.0.1:8080/v1/chat/generations'
For Tasks:
Click tags to check more tools for each tasksFor Jobs:
Alternative AI tools for chatgpt-adapter
Similar Open Source Tools
chatgpt-adapter
ChatGPT-Adapter is an interface service that integrates various free services together. It provides a unified interface specification and integrates services like Bing, Claude-2, Gemini. Users can start the service by running the linux-server script and set proxies if needed. The tool offers model lists for different adapters, completion dialogues, authorization methods for different services like Claude, Bing, Gemini, Coze, and Lmsys. Additionally, it provides a free drawing interface with options like coze.dall-e-3, sd.dall-e-3, xl.dall-e-3, pg.dall-e-3 based on user-provided Authorization keys. The tool also supports special flags for enhanced functionality.
Chat-Style-Bot
Chat-Style-Bot is an intelligent chatbot designed to mimic the chatting style of a specified individual. By analyzing and learning from WeChat chat records, Chat-Style-Bot can imitate your unique chatting style and become your personal chat assistant. Whether it's communicating with friends or handling daily conversations, Chat-Style-Bot can provide a natural, personalized interactive experience.
metaso-free-api
Metaso AI Free service supports high-speed streaming output, secret tower AI super network search (full network or academic as well as concise, in-depth, research three modes), zero-configuration deployment, multi-token support. Fully compatible with ChatGPT interface. It also has seven other free APIs available for use. The tool provides various deployment options such as Docker, Docker-compose, Render, Vercel, and native deployment. Users can access the tool for chat completions and token live checks. Note: Reverse API is unstable, it is recommended to use the official Metaso AI website to avoid the risk of banning. This project is for research and learning purposes only, not for commercial use.
Senparc.AI
Senparc.AI is an AI extension package for the Senparc ecosystem, focusing on LLM (Large Language Models) interaction. It provides modules for standard interfaces and basic functionalities, as well as interfaces using SemanticKernel for plug-and-play capabilities. The package also includes a library for supporting the 'PromptRange' ecosystem, compatible with various systems and frameworks. Users can configure different AI platforms and models, define AI interface parameters, and run AI functions easily. The package offers examples and commands for dialogue, embedding, and DallE drawing operations.
gemini-openai-proxy
Gemini-OpenAI-Proxy is a proxy software designed to convert OpenAI API protocol calls into Google Gemini Pro protocol, allowing software using OpenAI protocol to utilize Gemini Pro models seamlessly. It provides an easy integration of Gemini Pro's powerful features without the need for complex development work.
deepseek-free-api
DeepSeek Free API is a high-speed streaming output tool that supports multi-turn conversations and zero-configuration deployment. It is compatible with the ChatGPT interface and offers multiple token support. The tool provides eight free APIs for various AI interfaces. Users can access the tool online, prepare for integration, deploy using Docker, Docker-compose, Render, Vercel, or native deployment methods. It also offers client recommendations for faster integration and supports dialogue completion and userToken live checks. The tool comes with important considerations for Nginx reverse proxy optimization and token statistics.
ChatGLM3
ChatGLM3 is a conversational pretrained model jointly released by Zhipu AI and THU's KEG Lab. ChatGLM3-6B is the open-sourced model in the ChatGLM3 series. It inherits the advantages of its predecessors, such as fluent conversation and low deployment threshold. In addition, ChatGLM3-6B introduces the following features: 1. A stronger foundation model: ChatGLM3-6B's foundation model ChatGLM3-6B-Base employs more diverse training data, more sufficient training steps, and more reasonable training strategies. Evaluation on datasets from different perspectives, such as semantics, mathematics, reasoning, code, and knowledge, shows that ChatGLM3-6B-Base has the strongest performance among foundation models below 10B parameters. 2. More complete functional support: ChatGLM3-6B adopts a newly designed prompt format, which supports not only normal multi-turn dialogue, but also complex scenarios such as tool invocation (Function Call), code execution (Code Interpreter), and Agent tasks. 3. A more comprehensive open-source sequence: In addition to the dialogue model ChatGLM3-6B, the foundation model ChatGLM3-6B-Base, the long-text dialogue model ChatGLM3-6B-32K, and ChatGLM3-6B-128K, which further enhances the long-text comprehension ability, are also open-sourced. All the above weights are completely open to academic research and are also allowed for free commercial use after filling out a questionnaire.
emohaa-free-api
Emohaa AI Free API is a free API that allows you to access the Emohaa AI chatbot. Emohaa AI is a powerful chatbot that can understand and respond to a wide range of natural language queries. It can be used for a variety of purposes, such as customer service, information retrieval, and language translation. The Emohaa AI Free API is easy to use and can be integrated into any application. It is a great way to add AI capabilities to your projects without having to build your own chatbot from scratch.
agentic_security
Agentic Security is an open-source vulnerability scanner designed for safety scanning, offering customizable rule sets and agent-based attacks. It provides comprehensive fuzzing for any LLMs, LLM API integration, and stress testing with a wide range of fuzzing and attack techniques. The tool is not a foolproof solution but aims to enhance security measures against potential threats. It offers installation via pip and supports quick start commands for easy setup. Users can utilize the tool for LLM integration, adding custom datasets, running CI checks, extending dataset collections, and dynamic datasets with mutations. The tool also includes a probe endpoint for integration testing. The roadmap includes expanding dataset variety, introducing new attack vectors, developing an attacker LLM, and integrating OWASP Top 10 classification.
aiges
AIGES is a core component of the Athena Serving Framework, designed as a universal encapsulation tool for AI developers to deploy AI algorithm models and engines quickly. By integrating AIGES, you can deploy AI algorithm models and engines rapidly and host them on the Athena Serving Framework, utilizing supporting auxiliary systems for networking, distribution strategies, data processing, etc. The Athena Serving Framework aims to accelerate the cloud service of AI algorithm models and engines, providing multiple guarantees for cloud service stability through cloud-native architecture. You can efficiently and securely deploy, upgrade, scale, operate, and monitor models and engines without focusing on underlying infrastructure and service-related development, governance, and operations.
EduChat
EduChat is a large-scale language model-based chatbot system designed for intelligent education by the EduNLP team at East China Normal University. The project focuses on developing a dialogue-based language model for the education vertical domain, integrating diverse education vertical domain data, and providing functions such as automatic question generation, homework correction, emotional support, course guidance, and college entrance examination consultation. The tool aims to serve teachers, students, and parents to achieve personalized, fair, and warm intelligent education.
json-translator
The json-translator repository provides a free tool to translate JSON/YAML files or JSON objects into different languages using various translation modules. It supports CLI usage and package support, allowing users to translate words, sentences, JSON objects, and JSON files. The tool also offers multi-language translation, ignoring specific words, and safe translation practices. Users can contribute to the project by updating CLI, translation functions, JSON operations, and more. The roadmap includes features like Libre Translate option, Argos Translate option, Bing Translate option, and support for additional translation modules.
Groq2API
Groq2API is a REST API wrapper around the Groq2 model, a large language model trained by Google. The API allows you to send text prompts to the model and receive generated text responses. The API is easy to use and can be integrated into a variety of applications.
bce-qianfan-sdk
The Qianfan SDK provides best practices for large model toolchains, allowing AI workflows and AI-native applications to access the Qianfan large model platform elegantly and conveniently. The core capabilities of the SDK include three parts: large model reasoning, large model training, and general and extension: * `Large model reasoning`: Implements interface encapsulation for reasoning of Yuyan (ERNIE-Bot) series, open source large models, etc., supporting dialogue, completion, Embedding, etc. * `Large model training`: Based on platform capabilities, it supports end-to-end large model training process, including training data, fine-tuning/pre-training, and model services. * `General and extension`: General capabilities include common AI development tools such as Prompt/Debug/Client. The extension capability is based on the characteristics of Qianfan to adapt to common middleware frameworks.
onnxruntime-server
ONNX Runtime Server is a server that provides TCP and HTTP/HTTPS REST APIs for ONNX inference. It aims to offer simple, high-performance ML inference and a good developer experience. Users can provide inference APIs for ONNX models without writing additional code by placing the models in the directory structure. Each session can choose between CPU or CUDA, analyze input/output, and provide Swagger API documentation for easy testing. Ready-to-run Docker images are available, making it convenient to deploy the server.
For similar tasks
chatgpt-adapter
ChatGPT-Adapter is an interface service that integrates various free services together. It provides a unified interface specification and integrates services like Bing, Claude-2, Gemini. Users can start the service by running the linux-server script and set proxies if needed. The tool offers model lists for different adapters, completion dialogues, authorization methods for different services like Claude, Bing, Gemini, Coze, and Lmsys. Additionally, it provides a free drawing interface with options like coze.dall-e-3, sd.dall-e-3, xl.dall-e-3, pg.dall-e-3 based on user-provided Authorization keys. The tool also supports special flags for enhanced functionality.
For similar jobs
weave
Weave is a toolkit for developing Generative AI applications, built by Weights & Biases. With Weave, you can log and debug language model inputs, outputs, and traces; build rigorous, apples-to-apples evaluations for language model use cases; and organize all the information generated across the LLM workflow, from experimentation to evaluations to production. Weave aims to bring rigor, best-practices, and composability to the inherently experimental process of developing Generative AI software, without introducing cognitive overhead.
LLMStack
LLMStack is a no-code platform for building generative AI agents, workflows, and chatbots. It allows users to connect their own data, internal tools, and GPT-powered models without any coding experience. LLMStack can be deployed to the cloud or on-premise and can be accessed via HTTP API or triggered from Slack or Discord.
VisionCraft
The VisionCraft API is a free API for using over 100 different AI models. From images to sound.
kaito
Kaito is an operator that automates the AI/ML inference model deployment in a Kubernetes cluster. It manages large model files using container images, avoids tuning deployment parameters to fit GPU hardware by providing preset configurations, auto-provisions GPU nodes based on model requirements, and hosts large model images in the public Microsoft Container Registry (MCR) if the license allows. Using Kaito, the workflow of onboarding large AI inference models in Kubernetes is largely simplified.
PyRIT
PyRIT is an open access automation framework designed to empower security professionals and ML engineers to red team foundation models and their applications. It automates AI Red Teaming tasks to allow operators to focus on more complicated and time-consuming tasks and can also identify security harms such as misuse (e.g., malware generation, jailbreaking), and privacy harms (e.g., identity theft). The goal is to allow researchers to have a baseline of how well their model and entire inference pipeline is doing against different harm categories and to be able to compare that baseline to future iterations of their model. This allows them to have empirical data on how well their model is doing today, and detect any degradation of performance based on future improvements.
tabby
Tabby is a self-hosted AI coding assistant, offering an open-source and on-premises alternative to GitHub Copilot. It boasts several key features: * Self-contained, with no need for a DBMS or cloud service. * OpenAPI interface, easy to integrate with existing infrastructure (e.g Cloud IDE). * Supports consumer-grade GPUs.
spear
SPEAR (Simulator for Photorealistic Embodied AI Research) is a powerful tool for training embodied agents. It features 300 unique virtual indoor environments with 2,566 unique rooms and 17,234 unique objects that can be manipulated individually. Each environment is designed by a professional artist and features detailed geometry, photorealistic materials, and a unique floor plan and object layout. SPEAR is implemented as Unreal Engine assets and provides an OpenAI Gym interface for interacting with the environments via Python.
Magick
Magick is a groundbreaking visual AIDE (Artificial Intelligence Development Environment) for no-code data pipelines and multimodal agents. Magick can connect to other services and comes with nodes and templates well-suited for intelligent agents, chatbots, complex reasoning systems and realistic characters.