A high-performance proxy server for converting OpenAI-compatible API endpoints for JetBrains AI services.
- Clone project
git clone https://github.com/YumeYua/Jetbrains-AI-Proxy.git && cd Jetbrains-AI-Proxy
-
Synchronization submodule
git submodule update --init --recursive
-
Configure build
cmake -B build -DCMAKE_BUILD_TYPE=Release
-
Compile
cmake --build build --config Release
./Jetbrains-AI-Proxy{
"server": {
"host": "127.0.0.1",
"port": 5795
},
"api": {
"url": "https://api.siliconflow.cn/v1/chat/completions",
"key": "sk-xxx",
"timeout": 30
},
"models": {
"enabled": [
"Qwen/Qwen2-7B-Instruct",
"Pro/Qwen/Qwen2.5-Coder-7B-Instruct",
"Qwen/Qwen2.5-7B-Instruct",
"Pro/Qwen/Qwen2.5-7B-Instruct"
]
},
"mock_responses": {
"What is the capital of France?": "The capital of France is Paris.",
"Tell me about AI.": "AI is the simulation of human intelligence in machines, enabling tasks like reasoning and learning.",
"Hello": "Hi! How can I assist you today?"
}
}