Google AI Studio & Google Gemini API #3917

Closed
opened 2025-11-11 15:42:32 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @xpbl on GitHub (Feb 17, 2025).

Feature Request

Is your feature request related to a problem? Please describe.
Google AI Studio chats cannot be imported and Google Gemini API should be supported without OpenAI proxy (the openai proxy is quite incomplete)

Describe the solution you'd like
Allow Google AI Studio imports and Google Gemini API to be used without a proxy

Describe alternatives you've considered
Using Google AI Studio sort of works but saving data is very finicky and can sometimes lead to data loss

Originally created by @xpbl on GitHub (Feb 17, 2025). # Feature Request **Is your feature request related to a problem? Please describe.** Google AI Studio chats cannot be imported and Google Gemini API should be supported without OpenAI proxy (the openai proxy is quite incomplete) **Describe the solution you'd like** Allow Google AI Studio imports and Google Gemini API to be used without a proxy **Describe alternatives you've considered** Using Google AI Studio sort of works but saving data is very finicky and can sometimes lead to data loss
Author
Owner

@xpbl commented on GitHub (Feb 17, 2025):

Google AI Studio chats are stored on your Google Drive once syncing is enabled.
For chats with attachments, attachment pointers can simply be ignored.

AI Studio chat format example:

{
  "runSettings": {
    "temperature": 1.0,
    "model": "models/gemini-2.0-flash",
    "topP": 0.95,
    "topK": 40,
    "maxOutputTokens": 8192,
    "responseMimeType": "text/plain",
  },
  "systemInstruction": {
  },
  "chunkedPrompt": {
    "chunks": [{
      "text": "hello",
      "role": "user",
      "tokenCount": 2
    }, {
      "text": "Hello! How can I help you today?\n",
      "role": "model",
      "finishReason": "STOP",
      "tokenCount": 11
    }],
    "pendingInputs": [{
      "text": "",
      "role": "user"
    }]
  }
}
@xpbl commented on GitHub (Feb 17, 2025): Google AI Studio chats are stored on your Google Drive once syncing is enabled. For chats with attachments, attachment pointers can simply be ignored. AI Studio chat format example: ``` { "runSettings": { "temperature": 1.0, "model": "models/gemini-2.0-flash", "topP": 0.95, "topK": 40, "maxOutputTokens": 8192, "responseMimeType": "text/plain", }, "systemInstruction": { }, "chunkedPrompt": { "chunks": [{ "text": "hello", "role": "user", "tokenCount": 2 }, { "text": "Hello! How can I help you today?\n", "role": "model", "finishReason": "STOP", "tokenCount": 11 }], "pendingInputs": [{ "text": "", "role": "user" }] } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3917