JustSong
0b8ccb94eb
chore: reorganize common package
2024-04-06 02:03:59 +08:00
JustSong
f586ae0ad8
chore: remove helper & util subpackage for relay
2024-04-06 01:50:12 +08:00
JustSong
24ed170e7b
chore: reorganize adaptor related package
2024-04-06 01:36:48 +08:00
JustSong
f70506eac1
chore: reorganize relay related package
2024-04-06 01:31:44 +08:00
JustSong
8f4d78e24d
chore: reorganize billing related package
2024-04-06 01:26:48 +08:00
JustSong
cd2707692f
chore: reorganize billing related package
2024-04-06 01:09:23 +08:00
JustSong
2ab7d25a80
chore: reorganize helper related package
2024-04-06 01:02:35 +08:00
JustSong
f9d914873f
chore: reorganize constant related package
2024-04-06 00:44:33 +08:00
JustSong
880e12c855
feat: support cogview-3
2024-04-06 00:30:08 +08:00
JustSong
0cb224e62e
chore: fix typo
2024-04-05 23:55:25 +08:00
JustSong
eec41849ec
chore: fix ali image implementation
2024-04-05 18:25:57 +08:00
Mo
d4347e7a35
feat: support Ali stable-diffusion-xl and wanx-v1 model ( #1240 )
...
* Fix ali ConvertRequest function to use baidu keyword
* Support Ali stable-diffusion-xl and wanx-v1 model
* Support Ali stable-diffusion-xl and wanx-v1 model
* Support Ali stable-diffusion-xl and wanx-v1 model
* chore: update ali constants and model ratio
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com >
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com >
2024-04-05 18:09:54 +08:00
manjieqi
b50b43eb65
feat: update baidu model name & ratio ( #1277 )
2024-04-05 17:30:48 +08:00
JustSong
5b41f57423
feat: support stepfun's models
2024-04-05 12:32:05 +08:00
JustSong
0bb7db0b44
fix: do not detect quota field in error message ( close #1276 )
2024-04-05 12:11:50 +08:00
JustSong
76569bb0b6
chore: disable channel when error message contain credit or balance
2024-04-05 00:31:41 +08:00
JustSong
1994256bac
chore: disable channel when error message contain quota
2024-04-05 00:18:26 +08:00
JustSong
1f80b0a39f
chore: add omitempty for xunfei functions
2024-04-05 00:13:37 +08:00
manjieqi
f73f2e51df
feat: update baidu model name & ratio ( #1253 )
...
* 修正百度模型名称
* 更新百度模型名称,并保留旧版兼容以及修正单价
* chore: add more model and adjust order
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com >
2024-04-05 00:02:15 +08:00
Yang Fei
6f036bd0c9
feat: add embedding-2 support for zhipu ( #1273 )
...
* 增加对智谱embedding-2模型的支持
* fix: fix usage & ratio
---------
Co-authored-by: yangfei <yangfei@xuyao.info >
Co-authored-by: JustSong <songquanpeng@foxmail.com >
2024-04-04 23:32:59 +08:00
JustSong
065da8ef8c
fix: fix ali function call ( #1242 )
2024-04-04 00:46:30 +08:00
Laisky.Cai
7c59a97a6b
Merge commit 'e3cfb1fa524107439e4b0caec0137e249bd06467'
2024-04-02 05:26:31 +00:00
JustSong
e3cfb1fa52
feat: use given usage if available in stream mode
2024-03-31 23:41:52 +08:00
JustSong
f89ae5ad58
feat: initial function call support for xunfei
2024-03-31 23:12:29 +08:00
JustSong
06a3fc5421
chore: update GeneralOpenAIRequest
2024-03-31 22:23:42 +08:00
Laisky.Cai
6314ecc259
Merge commit 'a9c464ec5ad6861d10cbd0f4bcd9859f7fd8abdd'
2024-03-31 12:29:57 +00:00
JustSong
3f3c13c98c
feat: support top_k for claude ( close #1239 )
2024-03-30 10:47:07 +08:00
JustSong
2ba28c72cb
feat: support function call for ali ( close #1242 )
2024-03-30 10:43:26 +08:00
Laisky.Cai
36353a1d96
Merge commit '5b349efff9906d6db9f31644008959250b2c30f9'
2024-03-27 22:09:47 +00:00
JustSong
f76c46d648
feat: add gemini-1.5-pro ( #1211 )
2024-03-24 22:50:09 +08:00
JustSong
56ddbb842a
fix: return pre-consumed quota when error happened for audio ( close #1217 )
2024-03-24 22:20:41 +08:00
JustSong
99f81a267c
fix: fix xunfei error handling ( close #1218 )
2024-03-24 22:14:45 +08:00
xietong
c243cd5535
feat: 支持 ollama 的 embedding 接口 ( #1221 )
...
* 增加ollama的embedding接口
* chore: fix function name
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com >
2024-03-24 21:51:31 +08:00
GuangxiaoLong
e96b173abe
feat: 移除 azure model 的 TrimSuffix ( #1193 )
2024-03-24 21:47:46 +08:00
Laisky.Cai
ddd2dd1041
fix: Refactor relay/channel, upgrade deps, improve request handling and error messages.
...
* Updated relay/channel/gemini package to use gin-gonic/gin for routing
* Added timeouts, environment variable for proxy, and error handling for HTTP clients in relay/util/init.go
* Improved error handling, URL path cases, and channel selection logic in middleware/distributor.go
* Added Content-Type header, closed request bodies, and added context to requests in relay/channel/common.go
* Upgraded various dependencies in go.mod
* Modified the GetRequestURL method in relay/channel/gemini/adaptor.go to include a "key" parameter in the URL and set a default version of "v1beta"
* Added io and net/http packages in relay/channel/gemini/adaptor.go and relay/channel/gemini/main.go
* Added a struct for GeminiStreamResp and modified response handling in relay/channel/gemini/main.go
* Imported packages for io and net/http added, gin-gonic/gin package added, and error handling improved in relay/channel/gemini/main.go
2024-03-19 03:11:19 +00:00
Laisky.Cai
d379377eca
Merge remote-tracking branch 'origin/upstream/main'
2024-03-18 01:31:21 +00:00
Ian Li
ade19ba4a2
feat: update default API version for Azure OpenAI ( #994 )
...
* feat: Update default API version for Azure OpenAI.
* chore: update other theme
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com >
2024-03-17 19:34:21 +08:00
Ian Li
4d86d021c4
feat: support Azure OpenAI TTS. ( #1177 )
2024-03-17 19:30:50 +08:00
JustSong
1185303346
chore: update comments
2024-03-17 14:10:35 +08:00
majian
205aba694f
chore: limit the temperature and top_p parameter value range to (0.0, 1) for zhipu ( #1091 )
2024-03-16 13:39:30 +08:00
Laisky.Cai
41afad713e
Merge remote-tracking branch 'origin/upstream/main'
2024-03-15 09:49:49 +00:00
Jguobao
66efabd5ae
fix: fix baidu url check ( #1143 )
...
添加百度的另外3个向量模型【"bge-large-zh",
"bge-large-en",
"tao-8k",
】
2024-03-14 23:31:07 +08:00
JustSong
b169173860
fix: force set Accept header for ali stream request ( close #1151 )
2024-03-14 23:20:38 +08:00
JustSong
e3767cbb07
fix: fix haiku model name ( close #1149 )
2024-03-14 23:13:05 +08:00
JustSong
be9eb59fbb
feat: support lingyiwanwu
2024-03-14 23:11:36 +08:00
JustSong
2dcef85285
feat: support ollama now ( close #870 )
2024-03-14 01:02:47 +08:00
JustSong
79d0cd378a
fix: fix baidu system prompt ( close #1079 )
2024-03-13 22:56:54 +08:00
JustSong
e99150bdb9
fix: make quota int64
2024-03-13 20:00:51 +08:00
JustSong
a72e5fcc9e
fix: when cached quota is too low, force refresh it
2024-03-13 19:38:44 +08:00
JustSong
49cad7d4a5
feat: update func ShouldDisableChannel for claude
2024-03-13 19:11:30 +08:00