-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add code snippets for text generation #181
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rlazo
reviewed
Jun 27, 2024
rlazo
reviewed
Jun 27, 2024
@rachelsaunders These snippets are incomplete but would you mind doing an initial pass? In particular, the documentation around the model initialization since it's repeated in each snippet. |
paulb777
previously approved these changes
Jul 10, 2024
github-actions
bot
added
component:swift sdk
Issue/PR related to Swift SDK
status:awaiting review
PR awaiting review from a maintainer
labels
Jul 11, 2024
paulb777
approved these changes
Jul 11, 2024
github-actions
bot
removed
the
status:awaiting review
PR awaiting review from a maintainer
label
Jul 12, 2024
enefry
added a commit
to enefry/generative-ai-swift
that referenced
this pull request
Oct 28, 2024
* 'main' of https://github.com/google/generative-ai-swift: Update version to 0.5.6 (google-gemini#206) Update `main` branch README for PaLM API decommissioning (google-gemini#205) Add a README for /samples (google-gemini#202) Add snippets for code execution (google-gemini#198) Add code execution support (google-gemini#196) Fix caution callout in README (google-gemini#197) Update Xcode version in CLI workflow (google-gemini#194) Fix region tag. (google-gemini#191) Add count tokens snippets for system instructions and tools (google-gemini#189) Add code snippets for controlled generation (google-gemini#188) Add a code snippet for function calling (google-gemini#187) Add documentation code snippets for model config (google-gemini#186) Add documentation code snippets for Chat (google-gemini#184) Add documentation code snippets for counting tokens (google-gemini#185) Add code snippets for text generation (google-gemini#181) Aligning the README with the Python's one (google-gemini#180)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CodeSnippetTests
testTarget
to the Swift package to ensure that the snippets build.API_KEY
environment variable in Xcode. They do not contain any assertions but output may be manually inspected.