Skip to content

Commit 91e1b6c

Browse files
committed
增加gemini-2.0-flash-exp模型 fix #54
1 parent 724e7dc commit 91e1b6c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

TMessagesProj/src/main/java/org/telegram/messenger/UserConfig.java

+4
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ public void initGoogle() {
580580
if (aiModelList == null) return;
581581
aiModelList.put(803, new AiModelBean("Gemini Pro 1.5", "gemini-1.5-pro-latest", true));
582582
aiModelList.put(811, new AiModelBean("Gemini Pro 1.5 002", "gemini-1.5-pro-002", true));
583+
aiModelList.put(814, new AiModelBean("Gemini 2.0 Flash exp", "gemini-2.0-flash-exp", true));
583584
aiModelList.put(804, new AiModelBean("Gemini 1.5 Flash", "gemini-1.5-flash-latest", true));
584585
aiModelList.put(812, new AiModelBean("Gemini 1.5 Flash 002", "gemini-1.5-flash-002", true));
585586
aiModelList.put(801, new AiModelBean("Gemini Pro 1.0", "gemini-pro", true));
@@ -628,6 +629,7 @@ public static String getGoogleVersion(String model) {
628629
|| model.equals("gemini-1.5-pro-002")
629630
|| model.equals("gemini-1.5-flash-002")
630631
|| model.equals("gemini-1.5-flash-8b-exp-0924")
632+
|| model.equals("gemini-2.0-flash-exp")
631633
)) {
632634
return "v1beta";
633635
}
@@ -805,6 +807,7 @@ public boolean isJudgeByModelGemini(int aiModel) {
805807
if (aiModel == 811) return true;
806808
if (aiModel == 812) return true;
807809
if (aiModel == 813) return true;
810+
if (aiModel == 814) return true;
808811

809812
return false;
810813
}
@@ -884,6 +887,7 @@ public static boolean isMultiCompletionRequest(int currentAccount, long userId)
884887
|| aiModel == 811
885888
|| aiModel == 812
886889
|| aiModel == 813
890+
|| aiModel == 814
887891
) return true;
888892

889893
// Claude

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1414
# org.gradle.parallel=true
1515
#Sat Mar 12 05:53:50 MSK 2016
16-
APP_VERSION_CODE=19
17-
APP_VERSION_NAME=1.1.9
16+
APP_VERSION_CODE=20
17+
APP_VERSION_NAME=1.2.0
1818
APP_PACKAGE=info.flyun.chatair
1919
RELEASE_KEY_PASSWORD=android
2020
RELEASE_KEY_ALIAS=androidkey

0 commit comments

Comments
 (0)