Skip to content

How to use Google AI Studio’s Gemini API in Spring AI #1247

Closed
@losnahj

Description

@losnahj

Below are the properties required to use vertexAI.

spring.ai.vertex.ai.gemini.project-id=PROJECT_ID
spring.ai.vertex.ai.gemini.location=LOCATION
spring.ai.vertex.ai.gemini.chat.options.model=vertex-pro-vision
spring.ai.vertex.ai.gemini.chat.options.temperature=0.5

#Credential
spring.ai.vertex.ai.gemini.credentialsUri

I am using the Google AI Studio Gemini API to call LLM just like I am using OpenAI.
However, in Google AI Studio, the only thing related to Credential is the API key. How can I use this as Credential?

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsgcpgemini

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions