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

No output after asking question #118

Open
schmid07 opened this issue Aug 6, 2024 · 4 comments
Open

No output after asking question #118

schmid07 opened this issue Aug 6, 2024 · 4 comments

Comments

@schmid07
Copy link

schmid07 commented Aug 6, 2024

I run the app using this code in rstudio.
library(chattr)
Sys.setenv("OPENAI_API_KEY" = "sk-........fV3D")
chattr_use("gpt35")
chattr_app()

it opens up the app in viewer pane and im able to submit a question. nothing is returned though after asking question.

Am on a work network so not sure if that is messing it up.

Thanks.

@fredsteamboat
Copy link

I'm having the same issue. Is it possible is has something to do with my ChatGPT account settings?

@rainoffallingstar
Copy link
Contributor

This package now works well in the console

@Hochinwei
Copy link

Hochinwei commented Nov 8, 2024

Hello, I'm also running into the same issue, has there been a fix yet?

Adding screenshots for more info.

image

Further probing using backtracing, I get the error message below:

Error in req_perform_connection():
! HTTP 404 Not Found.

Backtrace:

  1. ├─chattr::chattr("Help to design code")
  2. │ ├─chattr::ch_submit(...)
  3. │ └─chattr:::ch_submit.ch_openai(...)
  4. │ └─chattr:::ch_openai_complete(prompt = prompt, defaults = defaults)
  5. │ └─req_result %>% ...
  6. └─httr2::req_perform_stream(...)
  7. └─httr2::req_perform_connection(req)
  8. └─httr2:::handle_resp(req, resp)
    
  9.   └─httr2:::resp_abort(resp, req, body, call = error_call)
    
  10.     └─rlang::abort(...)
    

@edgararuiz
Copy link
Collaborator

Hi all, yes, I plan to offload ChatGPT's backend to https://github.com/tidyverse/elmer once it comes out. This will provide a more consistent interface

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

No branches or pull requests

5 participants