This website requires JavaScript.
21afea80b2
Merge pull request 'feat: capture HTTP Retry-After header in Error::retry_delay() (#21 )' (#22 ) from feat/retry-after-header into main
main
André Cipriani Bandarra
2026-10-28 19:55:32 +00:00
440b3c7a87
fix: keep Retry-After for JSON error bodies and tighten parsing (#21 )
feat/retry-after-header
Andre Cipriani Bandarra
2026-10-28 19:49:45 +00:00
2e0016eb25
feat: capture HTTP Retry-After header in Error::retry_delay() (#21 )
Andre Cipriani Bandarra
2026-10-28 08:54:52 +00:00
faa72a6d7a
Merge pull request 'feat: expose Gemini RetryInfo retry_delay() on VertexApiError and Error (#19 )' (#20 ) from feat/retry-delay into main
André Cipriani Bandarra
2026-10-28 08:48:51 +00:00
a49d37f03d
refactor: address review feedback on retry_delay (#19 )
feat/retry-delay
Andre Cipriani Bandarra
2026-10-28 08:44:53 +00:00
cecc14d31e
feat: expose Gemini RetryInfo retry_delay() on VertexApiError and Error (#19 )
Andre Cipriani Bandarra
2026-10-28 08:35:53 +00:00
4791125943
Merge pull request 'ci: run fmt, clippy and tests on the Gitea runner' (#18 ) from ci/gitea-actions into main
André Cipriani Bandarra
2026-10-26 20:42:05 +00:00
6d49f9939c
ci: install Rust on the Gitea runner and check fmt and clippy
ci/gitea-actions
Andre Cipriani Bandarra
2026-10-26 20:34:40 +00:00
c911fc382e
style: run cargo fmt on examples
Andre Cipriani Bandarra
2026-10-26 20:34:40 +00:00
a8961b12e3
Merge pull request 'feat: allow missing name/args in FunctionCallData and add streamed argument fields (#12 )' (#17 ) from feat/function-call-optional-fields into main
André Cipriani Bandarra
2026-10-26 19:59:46 +00:00
2f15b5298d
feat: allow missing name/args in FunctionCallData and add streamed argument fields (#12 )
feat/function-call-optional-fields
Andre Cipriani Bandarra
2026-10-26 19:57:09 +00:00
01a4300bb3
Merge pull request 'feat: omit None fields on Content, add optional id to function call/response, and add Part helpers (#11 )' (#16 ) from feat/content-none-and-part-helpers into main
André Cipriani Bandarra
2026-10-26 19:45:55 +00:00
a2cff20aff
feat: omit None fields on Content, add optional id to function call/response, and add Part helpers (#11 )
feat/content-none-and-part-helpers
Andre Cipriani Bandarra
2026-10-26 19:39:36 +00:00
7d5c6e3e28
Merge pull request 'feat: check response status in all GeminiClient methods and add Error::is_retryable() (#10 )' (#15 ) from feat/error-status-and-retryable into main
André Cipriani Bandarra
2026-10-26 19:26:46 +00:00
8d1c9c3bb6
feat: check response status in all GeminiClient methods and add Error::is_retryable() (#10 )
feat/error-status-and-retryable
Andre Cipriani Bandarra
2026-10-26 19:24:49 +00:00
7264276232
Merge pull request 'feat: add thoughts, cached content, and tool use token counts to UsageMetadata (#9 )' (#14 ) from feat/usage-metadata-token-counts into main
André Cipriani Bandarra
2026-10-26 19:07:08 +00:00
763a1a5da6
feat: add thoughts, cached content, and tool use token counts to UsageMetadata (#9 )
feat/usage-metadata-token-counts
Andre Cipriani Bandarra
2026-10-26 18:52:18 +00:00
f9e74ee171
Merge pull request 'fix: propagate LinesCodecError in parse_sse_event (#8 )' (#13 ) from fix/propagate-sse-lines-codec-error into main
André Cipriani Bandarra
2026-10-26 18:44:14 +00:00
20f7a4a34c
fix: propagate LinesCodecError in parse_sse_event (#8 )
fix/propagate-sse-lines-codec-error
Andre Cipriani Bandarra
2026-10-26 18:37:10 +00:00
e64a748d5c
Merge pull request 'fix: decode every complete SSE event already in the buffer' (#7 ) from fix/sse-decode-loop into main
André Cipriani Bandarra
2026-10-25 17:04:22 +00:00
166bdefa89
fix: decode every complete SSE event already in the buffer
fix/sse-decode-loop
Andre Cipriani Bandarra
2026-10-25 16:56:54 +00:00
ebb49eb929
Merge pull request 'fix: return error on non-2xx response in stream_generate_content (#3 )' (#4 ) from fix/stream-non-2xx-handling into main
André Cipriani Bandarra
2026-10-18 22:54:23 +01:00
9bade7a1e6
test: move client unit tests to sibling client_tests.rs per rust-testing conventions
fix/stream-non-2xx-handling
Andre Cipriani Bandarra
2026-10-18 22:52:40 +01:00
ba9870277c
fix: return error on non-2xx response in stream_generate_content (#3 )
Andre Cipriani Bandarra
2026-10-18 22:47:23 +01:00
196d5a9f55
Merge pull request 'feat: support parametersJsonSchema on function declarations' (#2 ) from feat/parameters-json-schema into main
André Cipriani Bandarra
2026-10-18 08:54:33 +01:00
43cf7933fc
feat: support parametersJsonSchema on function declarations
Andre Cipriani Bandarra
2026-10-18 08:34:56 +01:00
69532ad110
Merge pull request 'feat/function-response-parts' (#1 ) from feat/function-response-parts into main
André Cipriani Bandarra
2026-10-17 15:05:38 +01:00
e120780006
docs: add multimodal function response example
feat/function-response-parts
Andre Cipriani Bandarra
2026-10-17 15:02:29 +01:00
f4f275f2f9
feat: support multimodal function response parts
Andre Cipriani Bandarra
2026-10-17 14:49:53 +01:00
494aab6d14
feat: add SSE streaming, thinking models, and modernized Part struct
Andre Bandarra
2026-09-20 16:42:55 +01:00
ad82fc712b
fix: support response parts with extra fields like thoughtSignature
Andre Cipriani Bandarra
2026-09-06 13:13:49 +01:00
f9c50a3f45
Expand README with features, quick start, examples, and API reference
André Cipriani Bandarra
2026-04-06 21:13:49 +01:00
1d467138ed
Move predict image safety settings to enum
André Cipriani Bandarra
2025-06-08 09:24:34 +01:00
9a8732f609
Move PersonGeneration parameter to enum
André Cipriani Bandarra
2025-06-08 09:11:01 +01:00
6e64b8fd72
Add missing parameters to imagegen
André Cipriani Bandarra
2025-06-08 08:58:48 +01:00
d1678bdc37
Define specific error for event stream ended
André Cipriani Bandarra
2025-04-06 08:12:58 +01:00
8ff379d040
Fixes lifetime for TokenProvider
André Cipriani Bandarra
2025-04-05 19:51:07 +01:00
51d6a27017
Adds streaming generation that returns a streaming
André Cipriani Bandarra
2025-04-05 19:18:33 +01:00
de9b14b984
Add support for the Google Search tool
André Cipriani Bandarra
2025-03-26 20:47:48 +00:00
83663680c9
Increase embedding precision to f64
Andre Cipriani Bandarra
2024-12-31 08:39:46 +00:00
fd1223da59
More builder refactoring
Andre Bandarra
2024-11-27 16:20:53 +00:00
56d6b95c53
Add shortcuts for commonly used functions
Andre Bandarra
2024-11-27 15:57:18 +00:00
db5a01afef
Adds more builders
Andre Bandarra
2024-11-27 15:11:01 +00:00
326b3919d1
Add builders for GenerateContent and CountToken
Andre Cipriani Bandarra
2024-11-26 20:27:36 +00:00
e6de1d1ce7
Adds error logging when failing o parse response
André Cipriani Bandarra
2024-10-06 08:18:05 +01:00
eb36c49493
Merge branch 'main' of https://github.com/andreban/gemini-rs
André Cipriani Bandarra
2024-10-05 17:07:24 +01:00
bbe5433d83
Adds code for image generation
André Cipriani Bandarra
2024-10-05 17:07:18 +01:00
dc1b5cabdf
Adds support for the response schema field
Andre Bandarra
2024-09-20 15:47:21 +01:00
cb954ea5db
Adds safety setting
Andre Bandarra
2024-08-15 14:44:59 +01:00
60c20958a4
Update README.md
André Cipriani Bandarra
2024-07-30 21:06:52 +01:00
d0d2dd6bab
Make safety rating scores optional
Andre Bandarra
2024-07-30 15:04:16 +01:00
74150d16b0
Makes all usageMetadata fields optional
Andre Bandarra
2024-07-12 16:49:26 +01:00
154b2f353b
Create rust.yml
André Cipriani Bandarra
2024-07-04 20:09:15 +01:00
81c7dccbdf
Add support for the GoogleSearchRetrieval tool
Andre Bandarra
2024-06-14 13:35:21 +01:00
3a97f75a5c
Fix generate_content result parsing
Andre Bandarra
2024-06-13 15:48:05 +01:00
c4e9f78ec9
Make content role optional
André Cipriani Bandarra
2024-06-09 10:07:00 +01:00
8e2c7dc41b
Add lifetime to TokenProvider
André Cipriani Bandarra
2024-06-04 20:39:49 +01:00
14010f9f78
Update GCP Auth to 0.12
André Cipriani Bandarra
2024-06-04 07:25:01 +01:00
1bd5ab830a
Merge branch 'main' of https://github.com/andreban/gemini-rs
André Cipriani Bandarra
2024-05-28 08:33:22 +01:00
9f7bf33057
Avoid pinning dependency versions
André Cipriani Bandarra
2024-05-28 08:30:49 +01:00
e056edc2c4
Implements result conversation for embedding results
Andre Bandarra
2024-05-14 22:33:12 +01:00
e45755ffea
Small refactor to close stream as soon as response is finished
André Cipriani Bandarra
2024-05-02 18:36:37 +01:00
ec98297a8a
Run cargo clippy --fix
Andre Bandarra
2024-05-01 17:16:04 +01:00
a640d97efb
Makes generate content error result into Error
Andre Bandarra
2024-05-01 17:14:32 +01:00
9754618153
Make SafetyRatings option in Candidates
Andre Bandarra
2024-04-25 14:45:31 +01:00
5fde27b70d
Allow using system instructions
André Cipriani Bandarra
2024-04-19 18:23:17 +01:00
3d298fabbc
Allow user to choose a conversation model
Andre Bandarra
2024-04-18 15:36:26 +01:00
8b94651a84
Makes candidate content optional
Andre Bandarra
2024-04-17 13:32:54 +01:00
64a3f0e2c1
Add response mime type to GenerationConfig
Andre Bandarra
2024-04-17 12:00:49 +01:00
0e219aded0
Make text embedding title optional
Andre Bandarra
2024-04-15 11:10:11 +01:00
5de4a96d33
Makes start_index and end_index optional in Citations
André Cipriani Bandarra
2024-03-01 14:06:12 +00:00
1c0aaf57b3
Allows different models for text-embedding
André Cipriani Bandarra
2024-03-01 13:45:26 +00:00
d7f041fa95
Better error logging
André Cipriani Bandarra
2024-03-01 13:40:02 +00:00
8e9a186ba9
Adds a count_token methods to the Gemini Clent
André Cipriani Bandarra
2024-02-29 19:48:42 +00:00
f2da435af8
Makes Error details optional
Andre Bandarra
2024-02-29 12:36:20 +00:00
c538d915e5
Make fields from TextEmbeddingResult and TextEmbeddingStatistics public
Andre Bandarra
2024-02-28 14:49:34 +00:00
627ce368b4
Add the text_embeddings API
Andre Bandarra
2024-02-28 14:03:30 +00:00
b8f2b7e85e
Refactor types into separate files
André Cipriani Bandarra
2024-02-23 18:25:32 +00:00
93285e53dd
Updates client to use the generateContent endpoint when not streaming
Andre Bandarra
2024-02-23 14:42:51 +00:00
83335e65dc
Adds streaming content
André Cipriani Bandarra
2024-02-16 21:36:08 +00:00
cc78aea3ff
Make Dialogue serializable
André Cipriani Bandarra
2024-02-07 20:20:51 +00:00
5ab9f353bc
Rename client and refactors dialog
André Cipriani Bandarra
2024-02-07 20:19:11 +00:00
4f49ec8478
Make Citation uri Optional
Andre Bandarra
2024-02-07 14:01:23 +00:00
16cec6fd09
Makes the candidate metadata optional
Andre Bandarra
2024-02-07 13:38:55 +00:00
ee7dcd4df4
Refactors ResponseChunk to use enums
André Cipriani Bandarra
2024-02-07 08:14:43 +00:00
8c42901ddf
Deserialization and error handling improvements
André Cipriani Bandarra
2024-02-07 07:43:11 +00:00
450fe84d8b
Improves error handling
André Cipriani Bandarra
2024-02-06 21:23:04 +00:00
67c6ba878b
Add base code and examples for the Vertex API
André Cipriani Bandarra
2024-02-06 20:50:36 +00:00
995d2537b9
Initial commit
André Cipriani Bandarra
2024-02-06 19:16:20 +00:00