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
Oliver Lee
0fe26cc4bd
feat: update ali relay implementation ( #830 )
...
* 修改通译千问最新接口:1.删除history参数,改用官方推荐的messages参数 2.整理messages参数顺序,补充必要上下文信息 3.用autogen调试测试通过
* chore: update impl
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-17 19:43:23 +08:00
JustSong
495fc628e4
feat: support gpt-4 with vision ( #683 , #714 )
2023-11-19 18:38:54 +08:00
igophper
d0a0e871e1
fix: support ali's embedding model ( #481 , close #469 )
...
* feat:支持阿里的 embedding 模型
* fix: add to model list
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-09-03 22:12:35 +08:00
glzjin
dfaa0183b7
fix: fix baidu & ali's quota calculation ( #444 )
...
* 修复阿里计费问题
* 修复百度计费问题
2023-08-19 17:14:39 +08:00
igophper
ca512f6a38
refactor: add set event stream headers func ( #402 )
...
封装流式传输响应头的设置
2023-08-12 21:55:18 +08:00
igophper
476a46ad7e
fix: fix finish_reason fileld not fully compatible with OpenAI ( close #372 , #373 )
...
* optimize:unify finish_reason field
* refactor: use a global stop finish reason
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-12 11:04:53 +08:00
JustSong
e92da7928b
feat: support ali's llm ( close #326 )
2023-07-28 23:45:08 +08:00