Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Commit 9df5445

Browse files
authored
Merge pull request #21 from teynar/feat/add-xai-provider
Add xAI provider
2 parents 83d7b13 + 907bbd8 commit 9df5445

File tree

3 files changed

+412
-3
lines changed

3 files changed

+412
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The development of this application gives me confidence in Kotlin/Ktor/kotlinx.s
1818

1919
## Currently supported
2020

21-
Proxy from: OpenAI, Claude, DashScope(Alibaba Qwen), Gemini, Deepseek, Mistral, SiliconFlow.
21+
Proxy from: OpenAI, Claude, DashScope(Alibaba Qwen), Gemini, Deepseek, Mistral, SiliconFlow, xAI.
2222

2323
Proxy as: LM Studio, Ollama.
2424

@@ -101,7 +101,7 @@ When first generating the config file, it will be created with schema annotation
101101
## Example config file
102102
103103
```yaml
104-
# $schema: https://github.com/Stream29/ProxyAsLocalModel/raw/master/config_v3.schema.json
104+
# $schema: https://github.com/Stream29/ProxyAsLocalModel/raw/master/config_v5.schema.json
105105
lmStudio:
106106
port: 1234 # This is default value
107107
enabled: true # This is default value
@@ -168,4 +168,14 @@ apiProviders:
168168
apiKey: <your_api_key>
169169
modelList:
170170
- gemini-2.5-flash-preview-04-17
171-
```
171+
xAI:
172+
type: xAI
173+
apiKey: <your_api_key>
174+
modelList:
175+
- grok-code-fast-1
176+
- grok-4-fast-reasoning
177+
- grok-4-fast-non-reasoning
178+
- grok-4-0709
179+
- grok-3-mini
180+
- grok-3
181+
```

0 commit comments

Comments
 (0)