Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bincooo authored and bincooo committed Dec 22, 2024
1 parent efbef2f commit 407e8f4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- [You](you.md)
- [Bing](bing.md)
- [V1](v1.md)
- [Windsurf](windsurf.md)

- image

Expand Down
47 changes: 47 additions & 0 deletions docs/windsurf.md
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,
    
}
```

0 comments on commit 407e8f4

Please sign in to comment.