Skip to content

Commit 6b9707a

Browse files
committed
refactor(docs): custom engine server documentation and properties
1 parent 2f08dbe commit 6b9707a

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

docs/customize/custom-llm-server.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ For example:
9393

9494

9595

96-
9796
```json
9897
{
9998
"customHeaders": { "CustomHeader": "my-value" },
@@ -120,3 +119,23 @@ And the request body will be:
120119
"messages": [{"role": "user", "message": "..."}]
121120
}
122121
```
122+
123+
### Moonshot AI example
124+
125+
Engine Server:
126+
127+
```
128+
https://api.moonshot.cn/v1/chat/completions
129+
```
130+
131+
Request body format
132+
133+
```json
134+
{ "customFields": {"model": "moonshot-v1-8k"}, "messageKeys": {"role": "role", "content": "content"} }
135+
```
136+
137+
Response format:
138+
139+
```
140+
$.choices[0].delta.content
141+
```

src/main/resources/messages/AutoDevBundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ settings.customModelParam= Custom Model
6161
settings.delaySecondsParam=Quest Delay Seconds
6262
settings.customEngineResponseFormatParam=Custom Response Format (Json Path)
6363
settings.customEngineResponseTypeParam=Custom Response Type
64-
settings.customEngineRequestBodyFormatParam=Custom Request Body Format (Json Path)
65-
settings.customEngineRequestHeaderFormatParam=Custom Request Header Format (Json Path)
64+
settings.customEngineRequestBodyFormatParam=Custom Request Body Format (Json)
65+
settings.customEngineRequestHeaderFormatParam=Custom Request Header Format (Json)
6666
settings.external.counit.enable.label=Enable CoUnit (Experimental)
6767
settings.external.counit.enable.label.comment=https://github.com/unit-mesh/co-unit
6868
settings.external.counit.location.label=CoUnit Location (TODO, with JSON RPC) :

0 commit comments

Comments
 (0)