-
Notifications
You must be signed in to change notification settings - Fork 610
feat(go): added DataPrompt and iterator-based stream support
#3926
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
Open
apascal07
wants to merge
24
commits into
main
Choose a base branch
from
ap/go-streaming
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9d1d995
Refactored formatters + added support for formatting streams.
apascal07 f445059
Added V2 of formatters that have legacy behavior.
apascal07 6dc77f1
Added back backward compatibility for JSONL.
apascal07 f5d9f5c
Removed v2 formats.
apascal07 3f1e7aa
Merge branch 'main' into ap/go-structured-streaming
apascal07 af4ecf6
Update gen.go
apascal07 39f9f74
Update extract_test.go
apascal07 c48d79c
Update formatter_test.go
apascal07 72425be
Update formatter_test.go
apascal07 0e5b472
Update gemini_test.go
apascal07 31f46e7
Rewrote formatter tests.
apascal07 327540a
Added iterator streaming functions and typed prompts.
apascal07 1d57a9f
Update generate.go
apascal07 b490aa8
Iterated on the new APIs.
apascal07 b9e90ea
Changed `Prompt` to `prompt` in `DataPrompt`.
apascal07 d75d708
Update prompt.go
apascal07 bd36083
Merge branch 'main' into ap/go-streaming
apascal07 e8957fe
Added some samples.
apascal07 334803e
Update main.go
apascal07 dadfcea
Merge branch 'main' into ap/go-streaming
apascal07 0700475
Update formatter_test.go
apascal07 befc705
Delete basic-prompts
apascal07 dfc9a65
Added unit tests.
apascal07 18ec2db
Further improvements.
apascal07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.