@Rtyu7829 在 New API通过vertex调用gemini-2.5-pro-exp-03-25思路分享 中发帖
前情见此帖子讨论:
参照此思路:
原项目:
google 的官方相关文档:
目前根据实际使用和佬友们的帖子,发现近期 gemini-2.5-pro-exp-03-25 在 vertex 中只能通过 global 区域调用,其余常规区域会出现如下的类似报错:
status code 404: Publisher Model projects/gen-lang-client-xxxxxx/locations/us-central1/publishers/google/models/gemini-2.5-pro-exp-03-25
而 NewAPI 的 vertex 渠道地区可以单独配置 gemini-2.5-pro-exp-03-25 地区如图所示:
[1]
因本人没有代码基础,具体代码部分的解释和编写由 gemini 2.5 pro 执行,佬友们可以仅供参考,或许有更优...