Skip to content
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

Switch to task processing #97

Merged
merged 57 commits into from
Jul 19, 2024
Merged

Switch to task processing #97

merged 57 commits into from
Jul 19, 2024

Conversation

julien-nc
Copy link
Member

@julien-nc julien-nc commented Jul 2, 2024

  • dynamic input/output form generation
  • migrate chattyUI to task processing
  • migrate Context chat to task processing
  • display progress while waiting for a task to complete
  • allow to cancel a running task
  • change the entire image generation logic, allow to share output files
  • refactor the audio recorder
  • many design improvements

add new notification table, add new endpoint to ask a notification for a task
adjust frontend to new scheduling logic with polling and setNotifyReady
adjust to the real task processing OCP API
support all input field types from task type inputShape
adjust task history list
fix number value being saved as string, start improving canSubmit check, should probably be checking all inputShape fields
use the assistant when the freeprompt picker is opened
use the assistant when the audio transcription picker is opened
use the assistant in the image generation smart picker, share result images, return the share links
implement preview generation for output files
display progress in running empty content

Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc added enhancement New feature or request 3. to review labels Jul 2, 2024
$i = 0;
while ($i < 60 && !in_array($task->getStatus(), [Task::STATUS_SUCCESSFUL, Task::STATUS_FAILED, Task::STATUS_CANCELLED])) {
sleep(1);
$task = $this->taskProcessingManager->getTask($task->getId());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, should probably poll in the browser

Copy link
Member Author

@julien-nc julien-nc Jul 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, both title and message generation are polling now.

src/assistant.js Outdated Show resolved Hide resolved
src/assistant.js Outdated Show resolved Hide resolved
@marcelklehr
Copy link
Member

PHP part looks good. I'm a bit overwhelmed by the vue.js part :D
I remembered, though, that the files that the task processing manager produces in app data cannot be retrieved by a simple RootFolder#getById(). Not sure if this is relevant for you

Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc
Copy link
Member Author

PHP part looks good. I'm a bit overwhelmed by the vue.js part :D I remembered, though, that the files that the task processing manager produces in app data cannot be retrieved by a simple RootFolder#getById(). Not sure if this is relevant for you

Yeah I had to replicate what you do in the task processing manager. It works fine.

@julien-nc julien-nc marked this pull request as ready for review July 15, 2024 12:58
@julien-nc
Copy link
Member Author

@marcelklehr Don't worry about the frontend. It's been used for more than a week by people on daily. Anyway it's going to get some more adjustments soon.

Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc merged commit 5da6573 into main Jul 19, 2024
11 checks passed
@julien-nc
Copy link
Member Author

Ui fixes/adjustments can be done in another PR

@julien-nc julien-nc mentioned this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants