Skip to content

0.1.2

Latest

Choose a tag to compare

@objecthub objecthub released this 22 Nov 00:30
  • Thoughts of completed turns are no longer sent back. The API only needs the current turn's thoughts, and it bills earlier ones as input tokens (405 against 53 input tokens in a measured two-turn conversation). replaysEarlierThoughts: true sends them anyway.
  • Retries: a request is sent again after a temporary failure (rate limits, exhausted quotas, overloaded or failing servers, failed interactions, lost or stalled connections) while nothing of its response has reached the session. GeminiRetryPolicy (default: two retries, at most 20 s of waiting each) sets how often; the server's RetryInfo decides how long, or else an exponential backoff with jitter. A longer requested wait fails right away with the reset time.
  • Responses that took more than one attempt record the number under gemini.attempts.