File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/google/ai/sample/feature/multimodal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,11 +183,11 @@ class PhotoReasoningViewModel(
183183 // to avoid re-executing already-executed commands
184184 private var incrementalCommandCount = 0
185185
186- // Mistral rate limiting per API key (1.5 seconds between requests with same key)
186+ // Mistral rate limiting per API key (4 seconds between requests with same key)
187187 private val mistralNextAllowedRequestAtMsByKey = mutableMapOf<String , Long >()
188188 private var lastMistralTokenTimeMs = 0L
189189 private var lastMistralTokenKey: String? = null
190- private val MISTRAL_MIN_INTERVAL_MS = 1500L
190+ private val MISTRAL_MIN_INTERVAL_MS = 4000L
191191
192192 // Accumulated full text during streaming for incremental command parsing
193193 private var streamingAccumulatedText = StringBuilder ()
You can’t perform that action at this time.
0 commit comments