-
Notifications
You must be signed in to change notification settings - Fork 105
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
Shiny Chat app crashes when clicking on options button #181
Comments
Thank for your report. Please try the development version and let us know if the problem persists: # install.packages("pak")
pak::pak("MichelNivard/gptstudio") If so, please paste the output of running |
Hi! I am having the same issue. `> gptstudio:::gptstudio_chat()
Thank you for any feedback and help! |
Thank you @JuliusGr01 , these reports are extremely valuable to us! For the crash when clicking the settings button, please try re-installing the development version (I see that @JamesHWade has been doing some updates). Nonetheless, we should have a For the "connection refused" error please go to #179 and paste the output of |
Thank you for the quick reply @calderonsamuel ! |
While working in another project I realized that OpenAI made changes in its billing system. Now you need to "buy" some credits in their billing platform for the requests to work as expected. You can configure auto-recharge. Please let us know it that solves this issue |
@calderonsamuel Thanks! That dissolved the main problem of at least being able to get the basic/setup right. |
So then what's necessary to make it work with Gemini? I have a Google API key and have the same issue where the app crashes when attempting to change the options? |
Thank you @JuliusGr01 and @kyleGrealis . It is clear to me now that this problem isn't related to just OpenAI. I'll dig into this later in the day. I'm not sure that I'll have the final fix but at least it will be easier to debug |
There is a draft PR for this issue. Please install it with: # install.packages("pak")
pak::pak("MichelNivard/gptstudio#190") I wasn't able to reproduce the bug on any of my systems, so I don't think the issue is solved yet, but running this version will provide better tracing of the error. We are counting on you to solve this 🙏 |
Hi! I'm able to reproduce the error using posit cloud. I created a new project and typed in the below code line by line. Thanks for this amazing package and hope this helps.
|
Thank you @yujuanGG ! I was able to reproduce the bug with your code. The solution is to install the development version of the package with Since installing the development version fixes the issue in this thread, we will close it in a week unless someone can provide another way to reproduce the bug |
Closing for not having additional info |
I wanted to switch models, but when I click on the options button, the Viewer window shows the options form for a fraction of a second and the Viwer window goes black. It seems like the Shiny Chat app crashes. In Background Jobs, it shows:
Warning: Error in purrr::map_chr: ℹ In index: 1.
Caused by error:
! Result must be length 1, not 0.
80:
79: signalCondition
78: signal_abort
77: rlang::abort
76: cli::cli_abort
75: h
74: .handleSimpleError
73: call_with_cleanup
70: map_
69: purrr::map_chr
68: %>%
67: get_available_models
66:
50: models
48: observe
47:
4: shiny::runApp
3: eval
2: eval
1: .rs.sourceWithProgress
Deleting chat history from this session.
R/RStudio/Package, all up-to-date as of Mar 1 2024. This is a new installation of GPTStudio. Works fine with OpenAI API.
Thanks.
The text was updated successfully, but these errors were encountered: