Welcome to the

Google Cloud Community

Meet industry peers, ask questions, collaborate to find answers, and connect with Googlers who are making the products you use every day.

cancel
Showing results for 
Search instead for 
Did you mean: 
Bronze 1
Since ‎08-19-2023
2 weeks ago

My Stats

  • 4 Posts
  • 1 Solutions
  • 0 Likes given
  • 0 Likes received

vsy's Bio

Badges fredzanarbor Earned

View all badges

Recent Activity

Hi,I am encountering too many 504 deadline exceeded messages -- maybe half of my requests.I would like to implement exponential backoff. There is an @backoff function decorator available in OpenAI. How do I achieve this in gemini?Using google-generat...
class init: self.generation_config = { "temperature": 1, "top_p": 0.95, "top_k": 0, "max_output_tokens": 8192, } def process_text(self, model_name, safety_settings, generation_config, text, system_instruction, user_prompt): self.configure_api() try: ...