ai-gateway/common
moondie ee9e746520
feat: update ali stream implementation & enable internet search (#856)
* Update relay-ali.go: 改进stream模式,添加联网搜索能力

通义千问支持stream的增量模式,不需要每次去掉上次的前缀;实测qwen-max联网模式效果不错,添加了联网模式。如果别的模型有问题可以改为单独给qwen-max开放

* 删除"stream参数"

刚发现原来阿里api没有这个参数,上次误加了。

* refactor: only enable search when specified

* fix: remove custom suffix when get model ratio

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-24 16:17:21 +08:00
..
image fix: fix base64 image parse error (#858) 2023-12-24 15:35:56 +08:00
constants.go feat: add Google Gemini Pro support (#826) 2023-12-17 12:48:32 +08:00
crypto.go Initial commit 2023-04-22 20:39:27 +08:00
custom-event.go refactor: rename file to conform to standards 2023-05-13 15:43:55 +08:00
database.go feat: able to set sqlite busy_timeout (#818) 2023-12-17 19:17:00 +08:00
email.go fix: add Date header for email (#742) 2023-11-24 20:56:53 +08:00
embed-file-system.go Initial commit 2023-04-22 20:39:27 +08:00
gin.go fix: skip JSON deserialization when accessing transcriptions and translations (#718) 2023-11-19 16:11:39 +08:00
group-ratio.go chore: format logs 2023-06-22 10:59:01 +08:00
init.go chore: check if SESSION_SECRET equals to random_string 2023-12-20 22:50:50 +08:00
logger.go feat: create new log file when too many logs recorded 2023-09-17 16:35:30 +08:00
model-ratio.go feat: update ali stream implementation & enable internet search (#856) 2023-12-24 16:17:21 +08:00
rate-limit.go Initial commit 2023-04-22 20:39:27 +08:00
redis.go fix: update cache immediately after cache get 2023-08-16 23:40:50 +08:00
utils.go fix: fix postgresql support (#606) 2023-10-22 18:38:29 +08:00
validate.go Initial commit 2023-04-22 20:39:27 +08:00
verification.go Initial commit 2023-04-22 20:39:27 +08:00