generative-ai-swift
generative-ai-swift copied to clipboard
Google AI SDK for Swift
_This issue was automatically created by [Allstar](https://github.com/ossf/allstar/)._ **Security Policy Violation** Security policy not enabled. A SECURITY.md file can give users information about what constitutes a vulnerability and how to report...
## Description of the change Follow-up from https://github.com/firebase/firebase-ios-sdk/pull/12887 ## Motivation Sync the updated User Interface from VertexAI repo. ## Type of change Choose one: Other ## Checklist - [x] I...
### Description of the feature request: I was quite annoyed by the fact that WatchOS was not already supported by this library, especially when I wanted to use the free...
Is there a particular reason for that?
Fixed the `xcresult_logs.py` script by: - Copying the missing dependencies [`command_trace.py`](https://github.com/firebase/firebase-ios-sdk/blob/e1e1b9349e70853d8316b6967067fbcd237b0eb8/scripts/lib/command_trace.py) and [`terminal.py`](https://github.com/firebase/firebase-ios-sdk/blob/e1e1b9349e70853d8316b6967067fbcd237b0eb8/scripts/lib/terminal.py) from `firebase-ios-sdk`. - Defaulting to the project name `generative-ai-swift`.
This is an alternative to #116 that supports automatic function calling. Note: Only supported in `Chat` / `sendMessage` (`sendMessageStream` not supported).
### Description of the feature request: Support for models/embedding-001 from https://ai.google.dev/models/gemini and https://ai.google.dev/examples/doc_search_emb ### What problem are you trying to solve with this feature? I'd like to support document Q&A...
### Description of the feature request: The ability to use the SDK in a server-side Swift environment, such as Vapor, typically on Linux. ### What problem are you trying to...
### Description of the feature request: Our code samples currently use pre-Observation code for data and state flow. We should migrate to the [Observation framework](https://developer.apple.com/documentation/observation).
- Renamed `ErrorInfo` to `ErrorDetails` - Made `details` in `RPCError` an enum representing [`ErrorDetails`](https://cloud.google.com/apis/design/errors#error_details) - `errorInfo` case to represent [`ErrorInfo`](https://github.com/googleapis/googleapis/blob/ab4ba823439f786b2091984fed6408a950aaef9e/google/rpc/error_details.proto#L51) - `badRequest` case to represent [`BadRequest`](https://github.com/googleapis/googleapis/blob/ab4ba823439f786b2091984fed6408a950aaef9e/google/rpc/error_details.proto#L170)