chattr icon indicating copy to clipboard operation
chattr copied to clipboard

No output after asking question

Open schmid07 opened this issue 1 year ago • 5 comments

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.

schmid07 avatar Aug 06 '24 21:08 schmid07

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

fredsteamboat avatar Sep 02 '24 03:09 fredsteamboat

This package now works well in the console

rainoffallingstar avatar Sep 03 '24 02:09 rainoffallingstar

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(...)
    

Hochinwei avatar Nov 08 '24 14:11 Hochinwei

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

edgararuiz avatar Nov 08 '24 18:11 edgararuiz

Hi there I have the same issue, is there a way to avoid this 404 error ?

hyrackus avatar Jan 24 '25 11:01 hyrackus

chattr 0.3.0 is now on CRAN, which now uses ellmer exclusively as integration point with LLMs: https://mlverse.github.io/chattr/index.html#using

edgararuiz avatar May 28 '25 19:05 edgararuiz