Skip to content

Commit

Permalink
perf: deprecate gemini 1.0 pro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry23011 committed Nov 14, 2024
1 parent 3fb7ff9 commit 7a1aebf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Easydict/Swift/Service/Gemini/GeminiService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public final class GeminiService: LLMStreamService {
var systemInstruction: ModelContent? = try ModelContent(role: "system", systemPrompt)

// !!!: gemini-1.0-pro model does not support system instruction https://github.com/google-gemini/generative-ai-python/issues/328
if model == GeminiModel.gemini_1_0_pro.rawValue {
if model == "gemini_1_0_pro" {
systemInstruction = nil
enableSystemPromptInChats = true
}
Expand Down Expand Up @@ -216,7 +216,6 @@ enum GeminiModel: String, CaseIterable {

// RPM: Requests per minute, TPM: Tokens per minute
// RPD: Requests per day, TPD: Tokens per day
case gemini_1_0_pro = "gemini-1.0-pro" // Free 15 RPM/32,000 TPM, 1,500 RPD/46,080,000 TPD (n/a context length)
case gemini_1_5_flash = "gemini-1.5-flash" // Free 15 RPM/100million TPM, 1500 RPD/ n/a TPD (1048k context length)
case gemini_1_5_pro = "gemini-1.5-pro" // Free 2 RPM/32,000 TPM, 50 RPD/46,080,000 TPD (1048k context length)
case gemini_1_5_pro_exp_0801 = "gemini-1.5-pro-exp-0801" // Experimental
Expand Down

0 comments on commit 7a1aebf

Please sign in to comment.