[RFC] 030 - Google Gemini 1.5 Pro API 兼容 #1796
arvinxx
started this conversation in
RFC | 特性开发
Replies: 3 comments 2 replies
-
dc私聊你了,你看看 |
Beta Was this translation helpful? Give feedback.
0 replies
-
实际测试,个人感觉 1.5 的 api key 基本到了可以正常使用的程度了。 vision 多轮也支持,对话不 pair 也支持。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
我很想知道在Google AI Studio中可使用1.5 Pro是否即代表着在其中创建的API也能访问1.5 PRO😩 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
虽然在 #1776 添加了新模型支持,但是用户反馈这个方式并不能支持 1.5 模型的调用:
设计思路
看了下 Google SDK 的代码,请求侧有一个
apiVersion
可以传参,可以设定为v1
或者v1beta
。而且当前 1.5 的模型是只支持 用v1beta
的请求调用。所以可以用如下方式实现(refs):
那看起来可能的解决方案就是加个模型的 id 判断,如果是最新的 1.5 模型,在这设定
apiVersion
为v1beta
:lobe-chat/src/libs/agent-runtime/google/index.ts
Lines 52 to 78 in aaedfa7
然鹅我没有 api key ,所以没法测试… 看看社区有没有人可以借我个key 或者直接来实现试试的?
验证
如何测试 是1.5 还是 1 ?神奇咒语:
Beta Was this translation helpful? Give feedback.
All reactions