spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
55.27k stars 37.62k forks source link

Questions about gemini support in the spring ai module #32700

Closed yangfeng20 closed 3 weeks ago

yangfeng20 commented 3 weeks ago

I want to use the gemini apiKey to access my gemini Ai instead of using project-id+location.

Currently, the spring ai module using gemini only supports project-id+location using google cloud. The apiKey mode in Google ai studio is not supported.

My request was to support the apiKey pattern, similar to openai.

jhoeller commented 3 weeks ago

I suppose you meant to raise this with the Spring AI project: https://github.com/spring-projects/spring-ai/issues