CalciumIon
79de02b05f
chore: Update dependencies and refactor JSON handling #614
...
- Removed the `bytedance/sonic` dependency and replaced its usage with the standard `encoding/json` package for JSON marshalling in `relay-text.go`.
- Updated `go.mod` to reflect the removal of `sonic` and adjusted the version of `sonic/loader`.
- Cleaned up `go.sum` to ensure consistency with the updated dependencies.
2024-12-12 14:14:24 +08:00
CalciumIon
a9f739a7e2
refactor: improve validation logic and error handling in relay-text.go
...
- Simplified validation checks for MaxTokens and Messages fields.
- Enhanced error messages for better clarity.
- Updated goroutine to avoid passing context unnecessarily.
2024-12-01 08:24:41 +08:00
CalciumIon
a167dd9a23
feat: 暂时禁用透传功能
2024-11-19 15:04:19 +08:00
CalciumIon
97fdcd8e8f
feat: 完善audio计费
2024-11-07 16:12:09 +08:00
Xyfacai
f0907bf60a
fix: 部分情况缺少返回预扣
...
(cherry picked from commit 96373455521a38095706bd81c57f9a18557d9c2e)
2024-11-05 19:28:08 +08:00
1808837298@qq.com
33af069fae
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
1808837298@qq.com
8b67664995
feat: 上游渠道为OpenAI渠道类型时,透传请求 ( close #532 )
2024-10-15 18:37:44 +08:00
1808837298@qq.com
9a4ca1e210
feat: playground
2024-09-26 00:59:09 +08:00
CalciumIon
0830ef3305
feat: support jina embedding
2024-09-02 01:11:19 +08:00
CalciumIon
7c4d9d225e
feat: support SiliconFlow ( close #437 , close #403 )
2024-08-16 18:27:26 +08:00
CalciumIon
d0f76a5c61
feat: support gpt-4o-gizmo-* ( close #436 )
2024-08-16 17:25:03 +08:00
CalciumIon
4b5303a77b
feat: 区分额度不足和预扣费失败提示
2024-08-09 18:48:13 +08:00
CalciumIon
6eab0cc370
feat: 区分额度不足和预扣费失败提示
2024-08-09 18:34:51 +08:00
CalciumIon
0123ad4d61
fix: 重试后request id不一致
2024-08-03 17:46:13 +08:00
CalciumIon
c92ab3b569
feat: 日志新增rpm和tpm数据。( close #384 )
2024-08-01 16:13:08 +08:00
CalciumIon
436d08b48f
feat: update stream_options
2024-07-19 14:06:10 +08:00
CalciumIon
fae918c055
chore: log format
2024-07-18 00:41:31 +08:00
CalciumIon
b0d5491a2a
refactor: image relay
2024-07-17 23:50:37 +08:00
CalciumIon
86ca533f7a
fix: fix bug
2024-07-16 23:40:52 +08:00
CalciumIon
bcc7f3edb2
refactor: audio relay
2024-07-16 22:07:10 +08:00
CalciumIon
0f687aab9a
fix: azure stream options
2024-07-15 16:05:30 +08:00
CalciumIon
df6502733c
feat: 完善stream_options
2024-07-08 02:00:39 +08:00
CalciumIon
b0e234e8f5
feat: support stream_options
2024-07-08 01:27:57 +08:00
CalciumIon
8af4e28f75
feat: support cohere rerank
2024-07-06 17:09:22 +08:00
CalciumIon
79010dbfc5
feat: 记录流模式首字时间 ( close #323 )
2024-06-26 18:04:49 +08:00
1808837298@qq.com
bfbbe67fcd
refactor: 重构敏感词
2024-05-23 23:59:55 +08:00
CaIon
71dcf43c71
feat: 日志显示重试信息
2024-05-16 16:41:08 +08:00
CaIon
71547849bc
feat: dalle系列改为使用模型固定价格计费
2024-05-13 16:04:02 +08:00
CaIon
39f6812a2b
feat: 完善日志详情
2024-05-13 15:08:01 +08:00
CaIon
6fb1fbfe96
feat: 日志详情展示模型价格
2024-05-12 15:35:57 +08:00
1808837298@qq.com
16b9aacb06
feat: log completionRatio
2024-05-03 12:26:17 +08:00
CaIon
2841669246
feat: 完善函数计费
2024-04-23 23:01:06 +08:00
CaIon
9294127686
feat: support aws claude
2024-04-23 11:44:40 +08:00
CaIon
6b71db7ce2
feat: 状态码复写
2024-04-20 21:05:23 +08:00
CaIon
f3f36dafbd
chore: 优化按次计费的数据库查询次数
2024-04-04 20:10:30 +08:00
CaIon
4b60528c5f
feat: 本地重试
2024-04-04 16:35:44 +08:00
CaIon
44a8ade4ba
fix: remove sensitive check on completion ( close #157 )
2024-03-29 22:20:14 +08:00
CaIon
cc8cc8b386
fix: try to fix 307
2024-03-25 22:51:31 +08:00
CaIon
a232afe9fd
feat: 统一错误提示
2024-03-20 20:36:55 +08:00
CaIon
64b9d3b58c
feat: 初步兼容生成内容检查
2024-03-20 19:00:51 +08:00
CaIon
7a663d26ec
feat: 初步兼容敏感词过滤
2024-03-20 17:07:42 +08:00
CaIon
d4df1960b2
fix: 修复模型映射功能失效 ( close #105 )
2024-03-11 18:28:51 +08:00
1808837298@qq.com
626217fbd4
fix: 修复流模式错误扣费的问题 ( close #95 )
2024-03-06 17:41:55 +08:00
1808837298@qq.com
fb39b6b30e
fix: Fix the issue of 'unknown relay mode' when making an embedding request ( close #93 )
2024-03-05 23:04:57 +08:00
1808837298@qq.com
37b307a784
fix: 修复预扣费判定无效导致用户可无限欠费问题
2024-03-03 22:07:20 +08:00
1808837298@qq.com
cbe0a1fa76
fix: add missing UpstreamModelName
2024-03-02 21:05:02 +08:00
1808837298@qq.com
a3687b72f8
fix: fix preConsumeQuota error
2024-02-29 16:39:52 +08:00
1808837298@qq.com
6013219f5b
feat: 初步重构完成
2024-02-29 16:21:25 +08:00
1808837298@qq.com
5b18cd6b0a
feat: 初步重构
2024-02-29 01:08:18 +08:00