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

feat: add gemini-2.0-flash-exp #1983

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

Laisky
Copy link
Collaborator

@Laisky Laisky commented Dec 15, 2024

新增功能

增加对 gemini-2.0-flash-exp 的支持,不需要再手动修改部署的环境变量 GEMINI_VERSION 即可适配。

Bugfix

顺手修了长期存在的 bizErr 的 race 问题。将指针换成了结构体,防止 goroutine 内发生 race。

我已确认该 PR 已自测通过,相关截图如下

CleanShot 2024-12-15 at 10 25 08@2x

Copy link

codecov bot commented Dec 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 1.21%. Comparing base (7c8628b) to head (e507b30).

Files with missing lines Patch % Lines
relay/adaptor/gemini/adaptor.go 0.00% 5 Missing ⚠️
controller/relay.go 0.00% 3 Missing ⚠️
relay/adaptor/ollama/main.go 0.00% 3 Missing ⚠️
monitor/manage.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1983      +/-   ##
========================================
- Coverage   1.21%   1.21%   -0.01%     
========================================
  Files        146     146              
  Lines      12295   12298       +3     
========================================
  Hits         149     149              
- Misses     12132   12135       +3     
  Partials      14      14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@songquanpeng songquanpeng merged commit e9f117f into songquanpeng:main Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants