Skip to content

Commit

Permalink
Reverting back to unversioned model name because of "Permission 'aipl…
Browse files Browse the repository at this point in the history
…atform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/open-mmpa/locations/us-central1/publishers/google/models/gemini-1.5-flash-002' (or it may not exist)." #56
  • Loading branch information
MrCsabaToth committed Nov 8, 2024
1 parent e76ce91 commit ce1e02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ai/service/ai_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AiService with FirebaseMixin, ToolsMixin {
final preferences = GetIt.I.get<PreferencesService>();
final modelType = preferences.fastLlmMode ? 'flash' : 'pro';
return FirebaseVertexAI.instance.generativeModel(
model: 'gemini-1.5-$modelType-002',
model: 'gemini-1.5-$modelType',
safetySettings: [
SafetySetting(
HarmCategory.harassment,
Expand Down

0 comments on commit ce1e02e

Please sign in to comment.