Laisky.Cai

Results 28 issues of Laisky.Cai

## 变更 https://api-docs.deepseek.com/quick_start/pricing 修改 deepseek-chat 的价格

## 问题 channel test 存在很多假阴性问题,即实际上测试失败了,但是页面显示成功。 ## 原因 `controller/channel-test.go` 这个文件里,是在 defer 中通过判定 err 是否为空来判断是否失败的,但是代码中很多失败条件下的 err 实际上被覆盖了,导致 defer 中的 err 始终为空,从而导致假阴性。 ## 修复 不要使用 `err :=` 来避免覆盖 err。 ## 其他修复:test prompt 原来的这个...

## 问题 o1 系列模型不支持 system prompt 和 max_tokens

## 功能 增加 o3-mini 和 gpt-4o-mini-audio 模型和倍率

## 功能 close #2022 支持 gpt-4o-audio 系列的 chat completetions 暂时没搞懂 stream 的计费模式,所以只支持了 `stream==false` 合并前可以使用 https://github.com/Laisky/one-api 来体验这个功能。 ## 依赖 本提交也包含了 https://github.com/songquanpeng/one-api/pull/2022 ## 自测 ![CleanShot 2025-01-14 at 14 36 32@2x](https://github.com/user-attachments/assets/23d82746-9de7-40a3-ae10-1c55aa2c1645) ![CleanShot 2025-01-14...

对 https://github.com/songquanpeng/one-api/pull/944 的更新,合并本 PR 后可以关闭 https://github.com/songquanpeng/one-api/pull/944 。 openai audio transcription/translation 接口仅对输入音频的长度进行计费。但是目前 one-api 的实现是对输出的字符进行计费。

## 功能 支持 GCP vertex imagen3 绘图模型 ## 自测 ![CleanShot 2025-01-12 at 12 18 08@2x](https://github.com/user-attachments/assets/2151e135-4e5a-4229-8ac5-0d42e2991149)

## 功能说明 前端以统一的 OpenAI Image Edits 接口,后端同时支持 OpenAI dall-e-2 和 replicate 的 flux remix。 ## 前提 该 PR 依赖于以前的两个 PR(本次提交中包含了这两个历史 PR) * https://github.com/songquanpeng/one-api/pull/1954 * https://github.com/songquanpeng/one-api/pull/1369 ## 自测 ![CleanShot 2024-12-16 at...