Skip to content

Commit 8fe297e

Browse files
Update PhotoReasoningViewModel.kt
1 parent 606b1e2 commit 8fe297e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)