-
Notifications
You must be signed in to change notification settings - Fork 74
handle data streaming for new responses API #807
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
Merged
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
53d2946
ensure stream is configurable in chatbot-server-public layer
ASteinheiser c853971
setup data streamer helper
ASteinheiser 50e58ba
add skeleton data streaming to createResponse service
ASteinheiser 5f094df
move StreamFunction type to chat-server, share with public
ASteinheiser 5ee9ce3
fix test
ASteinheiser 685f140
start streaming in createResponse
ASteinheiser e5c600f
add stream disconnect
ASteinheiser 636a3db
move in progress stream message
ASteinheiser eb511bf
stream event from verifiedAnswer helper
ASteinheiser 29c18cd
create helper for addMessageToConversationVerifiedAnswerStream
ASteinheiser 0b02450
apply stream configs to chat-public
ASteinheiser e521aff
update test to use openAI client
ASteinheiser 5f41b6d
update input schema for openai client call to responses
ASteinheiser 25ea804
add test helper for making local server
ASteinheiser 838fc86
almost finish converting createResposne tests to use openai client
ASteinheiser 1c1305a
more tests
ASteinheiser f821f8f
disconnect data streamed on error
ASteinheiser 9822ecf
update data stream logic for create response
ASteinheiser 94fdc7b
update data streamer sendResponsesEvent write type
ASteinheiser 9c706a2
i think this still needs to be a string
ASteinheiser 503b2df
mapper for streamError
ASteinheiser 5a879f8
export openai shim types
ASteinheiser c4d1cf6
mostly working tests with reading the response stream from openai client
ASteinheiser dd736b0
create test helper
ASteinheiser 1c34c76
fix test helper for reading entire stream
ASteinheiser 84158a5
dont send normal http message at end (maybe need this when we support…
ASteinheiser 792c919
improved tests
ASteinheiser 9ece8ab
more test improvement -- proper use of conversation service, addition…
ASteinheiser b3188cc
fix test for too many messages
ASteinheiser cb8c0ef
remove skip tests
ASteinheiser 314c576
mostly working responses tests
ASteinheiser 4bfee69
abstract helpers for openai client requests
ASteinheiser be6183b
use helpers in create response tests
ASteinheiser c85d341
fix tests by passing responseId
ASteinheiser 4fcd407
skip problematic test
ASteinheiser 367b316
skip problematic test
ASteinheiser d03cac6
create baseResponseData helper
ASteinheiser 044a7a0
pass zod validated req body
ASteinheiser f38631e
add tests for all responses fields
ASteinheiser ce3de9b
remove log
ASteinheiser c1841c1
abstract helper for formatOpenaiError
ASteinheiser 823cd47
replace helper
ASteinheiser 64d3a14
await server closing properly
ASteinheiser 597745a
basic working responses tests with openai client
ASteinheiser f8d0120
update rate limit test
ASteinheiser 990f352
fix testing port
ASteinheiser 741f9fa
update test type related to responses streaming
ASteinheiser fb86f41
apply type to data streamer
ASteinheiser ffc69c4
cleanup shared type
ASteinheiser 6f67454
fix router tests
ASteinheiser 24c4cf0
fix router tests
ASteinheiser 2a97b40
update errors to be proper openai stream errors
ASteinheiser 8e23ed3
ensure format message cleans customData as well
ASteinheiser e05239e
add comment
ASteinheiser b7a1424
update tests per review
ASteinheiser e976991
update test utils
ASteinheiser 1ccd448
fix test type
ASteinheiser 7c6c712
update openai rag-core to 5.9
ASteinheiser bf0571a
fix data streamer for responses events to be SSE compliant
ASteinheiser 87d7b7e
cleanup responses tests
ASteinheiser e0dc84d
cleanup createResponse tests
ASteinheiser c1629fe
cleanup error handling to match openai spec
ASteinheiser e1f3cad
fix tests for standard openai exceptions
ASteinheiser 9b9b8b2
cleanup
ASteinheiser d1319c4
add "required" as an option for tool_choice
ASteinheiser 171dee7
cleanup datastreamer test globals
ASteinheiser 2282d0d
add test to dataStreamer for streamResponses
ASteinheiser 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
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
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.
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.