Skip to content

Commit

Permalink
增加gemini-2.0-flash-exp模型 fix #54
Browse files Browse the repository at this point in the history
  • Loading branch information
flyun committed Dec 30, 2024
1 parent 724e7dc commit 91e1b6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ public void initGoogle() {
if (aiModelList == null) return;
aiModelList.put(803, new AiModelBean("Gemini Pro 1.5", "gemini-1.5-pro-latest", true));
aiModelList.put(811, new AiModelBean("Gemini Pro 1.5 002", "gemini-1.5-pro-002", true));
aiModelList.put(814, new AiModelBean("Gemini 2.0 Flash exp", "gemini-2.0-flash-exp", true));
aiModelList.put(804, new AiModelBean("Gemini 1.5 Flash", "gemini-1.5-flash-latest", true));
aiModelList.put(812, new AiModelBean("Gemini 1.5 Flash 002", "gemini-1.5-flash-002", true));
aiModelList.put(801, new AiModelBean("Gemini Pro 1.0", "gemini-pro", true));
Expand Down Expand Up @@ -628,6 +629,7 @@ public static String getGoogleVersion(String model) {
|| model.equals("gemini-1.5-pro-002")
|| model.equals("gemini-1.5-flash-002")
|| model.equals("gemini-1.5-flash-8b-exp-0924")
|| model.equals("gemini-2.0-flash-exp")
)) {
return "v1beta";
}
Expand Down Expand Up @@ -805,6 +807,7 @@ public boolean isJudgeByModelGemini(int aiModel) {
if (aiModel == 811) return true;
if (aiModel == 812) return true;
if (aiModel == 813) return true;
if (aiModel == 814) return true;

return false;
}
Expand Down Expand Up @@ -884,6 +887,7 @@ public static boolean isMultiCompletionRequest(int currentAccount, long userId)
|| aiModel == 811
|| aiModel == 812
|| aiModel == 813
|| aiModel == 814
) return true;

// Claude
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Sat Mar 12 05:53:50 MSK 2016
APP_VERSION_CODE=19
APP_VERSION_NAME=1.1.9
APP_VERSION_CODE=20
APP_VERSION_NAME=1.2.0
APP_PACKAGE=info.flyun.chatair
RELEASE_KEY_PASSWORD=android
RELEASE_KEY_ALIAS=androidkey
Expand Down

0 comments on commit 91e1b6c

Please sign in to comment.