one-api/relay/channel
Laisky.Cai fdde066252 Refactor: Anthropic model response proto update
- Refactor content response

- Update channel adaptor to support `claude_model`
- Remove `null` stop reasons from content responses
- Add logging for error responses
- Change content start, ping, and message delta types to return true
- Set stop reason to end turn when response does not include a stop reason
- Set content response stop reason to null
- Add error handling for unmarshalling stream responses
- Rename `Completion` to `Text` in type definitions and `StopReason` to `Delta.StopReason`
- Count tokens in the `Delta.Text` field of the response instead of `Completion`
- Remove `Model` from the full text response
- Trim \r from incoming data
2024-03-05 05:05:57 +00:00
..
ai360 feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00
aiproxy Merge remote-tracking branch 'origin/upstream/main' 2024-02-27 01:09:14 +00:00
ali fix: set missing ali parameters (close #1028) 2024-03-03 22:51:01 +08:00
anthropic Refactor: Anthropic model response proto update 2024-03-05 05:05:57 +00:00
baichuan feat: support baichuan's models now (close #1057) 2024-03-02 00:55:48 +08:00
baidu feat: support third part models of baidu (#1046) 2024-03-03 23:50:28 +08:00
gemini Merge remote-tracking branch 'origin/upstream/main' 2024-03-05 01:02:35 +00:00
minimax feat: support minimax's models now (close #354) 2024-03-02 01:24:28 +08:00
mistral feat: support Mistral's models now (close #1051) 2024-03-03 21:46:45 +08:00
moonshot feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00
openai Merge remote-tracking branch 'origin/upstream/main' 2024-03-05 01:02:35 +00:00
palm feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00
tencent feat: support chatglm-4 (close #1045, close #952, close #952, close #943) 2024-03-02 03:05:25 +08:00
xunfei fix: fix stream response id 2024-02-25 19:47:59 +08:00
zhipu feat: support chatglm-4 (close #1045, close #952, close #952, close #943) 2024-03-02 03:05:25 +08:00
common.go refactor: use adaptor to do relay & test 2024-02-18 00:15:31 +08:00
interface.go feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00