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

Audio input, app layout tweaks, better background startup, use ExtendedTask #224

Merged
merged 48 commits into from
Aug 31, 2024

Conversation

JamesHWade
Copy link
Collaborator

@JamesHWade JamesHWade commented Aug 23, 2024

Related issue

Description of changes

This is a rather big PR. It includes:

  • A new audio input option (this may only show up if you open the app in a browser)
  • Changes to gathering editor theme to improve compatibility with Positron
  • Changes the name of run_chatgpt_app to gptstudio_run_chat_app
  • Revamps the bg app startup to work better with linux
  • Change the default openai model to gpt-4o
  • Adds tests for creating API skeletons
  • Restyles chat app to feel more chat-like
  • Uses ExtendedTask to run api calls in non-blocking (async) mode
  • Add code syntax highlighting based on selected theme (defaults to github styling)

For contributors

  • I have added the relevant changes to the NEWS.md file
  • I have added relevant tests or documentation with my changes
    • We should update app screenshots to showcase the changes for our next release.

For reviewers

  • Changes meet the acceptance criteria of the related issue
  • The contribution follows style conventions and code of conduct
  • Branch passes automated testing
  • I have incremented the package version in the DESCRIPTION file before merging

@JamesHWade JamesHWade changed the title Audio input Audio input, app layout tweaks, better background startup, use ExtendedTask Aug 26, 2024
@JamesHWade JamesHWade marked this pull request as ready for review August 26, 2024 00:07
@JamesHWade
Copy link
Collaborator Author

For testing the audio input, you'll need to open the app in a browser instead of RStudio viewer. I haven't found a workaround to that. Same behavior in Positron.

@JamesHWade
Copy link
Collaborator Author

#222 should not be marked as ready to close. It's still WIP. That's my bad.

@JamesHWade JamesHWade removed a link to an issue Aug 26, 2024
1 task
Copy link
Collaborator Author

@JamesHWade JamesHWade left a comment

Choose a reason for hiding this comment

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

I've gone through these changes and will be ready to merge once I hear from you @calderonsamuel

- Add audio input option for chat app. #224
- Fix bug with chat app not loading on linux. #224
- Allow chat app to run in Positron (not yet as background job) #224
- API calls now run async with ExtendedTask. #224
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Update on this, ExtendedTask needs a promise to be returned. I've moved promises to Suggests, but it's not really another dependency because shiny already depends on the package.

@calderonsamuel
Copy link
Collaborator

Works ok in Positron's viewer

image

But not when moving to browser:

image

Or in Rstudio's viewer:

image

@JamesHWade
Copy link
Collaborator Author

JamesHWade commented Aug 28, 2024

Hmm... can you try reinstalling the package see what's at that location? That should be the right spot that tools::R_user_dir("gptstudio") uses.

I think I fixed it.

@JamesHWade JamesHWade merged commit ea51010 into main Aug 31, 2024
8 checks passed
@JamesHWade JamesHWade deleted the audio-input branch September 2, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewer Connection Refused" when starting chat session from add in Add voice command integration with whisper
2 participants