Skip to content

Commit 7bc0be4

Browse files
committed
Update gemini.py
Overhaul Gemini classes for v1.3 - Implement new Multimodal class for handling multiple input types - Refactor Chat, Text, and Vision classes for improved performance - Add support for new API features (system prompts, JSON output) - Implement file caching mechanism for better resource management
1 parent 0d60bf0 commit 7bc0be4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gemini.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def run(self, api_key=None, model=None, prompt=None, files=None, stream=None, js
108108
self.initialize_client(api_key, model)
109109

110110
if not self.input_validator.validate_multimodal_input(candidate_count, system_prompt, json, self.model, safety_categories, safety_thresholds):
111+
print("[ ERROR ]: Multimodal input validation failed. Please check your parameters and try again.")
111112
return
112113

113114
conversation_history = []

0 commit comments

Comments
 (0)