-
Notifications
You must be signed in to change notification settings - Fork 183
feat: implement csv upload #96
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 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a9d2177
feat: implement interpreter tool
thucpn ff8bed6
build tool system prompt
thucpn 2e43ba1
refactor: use local file system, use absolute resource url
thucpn 778bdfa
fix: typo
thucpn 2e47af8
feat: implement csv upload
thucpn 5d19019
remove dead code
thucpn cc45225
fix lint
thucpn 667c122
update icon & fix code review
thucpn f3c1e54
fix lint
thucpn 14c0b2e
Update .gitignore
thucpn c24e60a
Update pre-commit
thucpn beaf4b4
add timeout for streaming
thucpn 2eb2803
Create bright-turkeys-melt.md
marcusschiesser bafb1d7
remove multi modal prop
thucpn 04cc7ce
suggest csv resources from frontend annotation data
thucpn 5068e28
Merge branch 'main' into feat/implement-csv-upload
thucpn d473867
get resouces inside chat input
thucpn b3f3ce4
resolve conflict
thucpn ce2de2d
update convert message content
thucpn b0e25b3
fix lint
thucpn 3d3d94c
feat: limit display
thucpn 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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -75,6 +75,15 @@ export function appendToolData( | |||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
export function createStreamTimeout(stream: StreamData) { | ||||||||||||||||||||||||||||||||||||
const timeout = Number(process.env.STREAM_TIMEOUT ?? 1000 * 60 * 5); // default to 5 minutes | ||||||||||||||||||||||||||||||||||||
const t = setTimeout(() => { | ||||||||||||||||||||||||||||||||||||
appendEventData(stream, `Stream timed out after ${timeout / 1000} seconds`); | ||||||||||||||||||||||||||||||||||||
stream.close(); | ||||||||||||||||||||||||||||||||||||
marcusschiesser marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||
}, timeout); | ||||||||||||||||||||||||||||||||||||
return t; | ||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||
Comment on lines
+85
to
+92
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Define the default timeout value as a constant for better readability and maintainability. + const DEFAULT_TIMEOUT = 1000 * 60 * 5; // 5 minutes
const timeout = Number(process.env.STREAM_TIMEOUT ?? DEFAULT_TIMEOUT); Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
export function createCallbackManager(stream: StreamData) { | ||||||||||||||||||||||||||||||||||||
const callbackManager = new CallbackManager(); | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
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.