8 Commits

Author SHA1 Message Date
51d6a27017 Adds streaming generation that returns a streaming
- Introducues generate_content_stream that returns a Tokio Steam instead
of a Queue. This allows using the standard stream APIs from
tokio-streams.
- Replace future-utils with tokio-streams, mainly due to better
ergonomics for using the filter_map stream combinator.
2025-04-05 19:18:33 +01:00
bbe5433d83 Adds code for image generation 2024-10-05 17:07:18 +01:00
14010f9f78 Update GCP Auth to 0.12 2024-06-04 07:25:01 +01:00
9f7bf33057 Avoid pinning dependency versions
Pinning specific versions in the library makes it harder for
applications to use newer versions o those dependencies. This is fixed
by setting setting only the major version for libraries that have
reached version 1.0.0 and above and major and minor versions for
dependencies that have not reached version 1.0.0 as those can have their
API surface changed across minor versions.
2024-05-28 08:30:49 +01:00
0e219aded0 Make text embedding title optional
- Make text embedding title optional, as sending it causes erros
on tasks that don't support title, like CLASSIFICATION.
- Update dependencies
2024-04-15 11:11:18 +01:00
83335e65dc Adds streaming content 2024-02-16 21:36:08 +00:00
8c42901ddf Deserialization and error handling improvements 2024-02-07 07:43:11 +00:00
67c6ba878b Add base code and examples for the Vertex API
- Add base code for the Vertex API with types and a client with helper
  methods for prompting text and conversation.
- Add examples for prompting text and conversation.
2024-02-06 20:50:36 +00:00