-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bincooo
authored and
bincooo
committed
Dec 22, 2024
1 parent
efbef2f
commit 407e8f4
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
- [You](you.md) | ||
- [Bing](bing.md) | ||
- [V1](v1.md) | ||
- [Windsurf](windsurf.md) | ||
|
||
- image | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## 配置说明 | ||
|
||
```config.yaml | ||
无* | ||
``` | ||
|
||
## 模型列表 | ||
|
||
```json | ||
[ | ||
"windsurf/claude-3-5-sonnet", | ||
"windsurf/gpt4o" | ||
] | ||
``` | ||
|
||
## 请求示例 | ||
|
||
*TIPS: authorization 为[网页](https://codeium.com/profile)登陆后的 https://web-backend.codeium.com/exa.user_analytics_pb.UserAnalyticsService/GetAnalytics 请求头x-api-key* | ||
|
||
```shell | ||
curl -i -X POST \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: ${authorization}" \ | ||
-d \ | ||
'{ | ||
"stream": true, | ||
"model": "windsurf/gpt4o", | ||
"messages": [ | ||
{ | ||
"role": "user", | ||
"content": "hi ~" | ||
} | ||
] | ||
}' \ | ||
'http://127.0.0.1:8080/v1/chat/completions' | ||
``` | ||
|
||
可用参数: | ||
|
||
```json | ||
{ | ||
MaxTokens, | ||
TopK, | ||
TopP, | ||
} | ||
``` |