Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

适配 gemini-1.5-flash #1435

Closed
5 tasks done
IAn2018cs opened this issue May 15, 2024 · 5 comments
Closed
5 tasks done

适配 gemini-1.5-flash #1435

IAn2018cs opened this issue May 15, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@IAn2018cs
Copy link

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

Gemini 新出的模型,不过这个模型请求路径中没有 models/
image

@IAn2018cs IAn2018cs added the enhancement New feature or request label May 15, 2024
@QAbot-zh
Copy link

补充,v1beta 路径可以直接调用 gemini-1.5-flash-latest,适配的时候可以注意一下差别

@temberature
Copy link

image

@tisfeng
Copy link
Contributor

tisfeng commented May 16, 2024

好像不能直接映射模型,gemini-1.5-flash-latest 这种目前只能用于 v1beta,目前 one-api 默认使用的是 v1 版本,如果要用,需要将环境变量 GEMINI_VERSION 改为 v1beta。

@mxdlzg
Copy link
Contributor

mxdlzg commented May 17, 2024

好像不能直接映射模型,gemini-1.5-flash-latest 这种目前只能用于 v1beta,目前 one-api 默认使用的是 v1 版本,如果要用,需要将环境变量 GEMINI_VERSION 改为 v1beta。

berry主题可以设置渠道版本

@tisfeng
Copy link
Contributor

tisfeng commented May 18, 2024

这个不错,感觉可以将一些可能需要修改的环境变量拿出来,允许通过 UI 的方式动态修改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants