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

ch_submit() bug for GitHub Copilot #73

Closed
mpthomson opened this issue Mar 15, 2024 · 2 comments
Closed

ch_submit() bug for GitHub Copilot #73

mpthomson opened this issue Mar 15, 2024 · 2 comments

Comments

@mpthomson
Copy link

So excited to start using the GitHub Copilot added in #71 - thanks for the great work!

While trying to play with the version on main, I hit a snag:

  1. Start the app (successful):
    image
  2. Enter text -> Submit -> Fails
> chattr::chattr_app()
• Provider: GitHub - Copilot Chat
• Path/URL: https://api.githubcopilot.com/chat/completions
• Model:

Listening on http://127.0.0.1:5576
<callr_error/rlib_error_3_0/rlib_error/error>
Error: 
! in callr subprocess.
Caused by error in `UseMethod("ch_submit")`:
! no applicable method for 'ch_submit' applied to an object of class "c('ch_github_copilot_chat', 'ch_github', 'ch_model')"
---
Subprocess backtrace:
1. chattr::ch_submit(defaults = do.call(what = chattr::chattr_defaults, …
2. base::.handleSimpleError(function (e) …
3. global h(simpleError(msg, call))
Warning: Error in observe: Streaming returned error
  51: <Anonymous>
  50: signalCondition
  49: signal_abort
  48: abort
  47: observe
  46: <observer>
   3: shiny::runApp
   2: runGadget
   1: chattr::chattr_app
@edgararuiz
Copy link
Collaborator

Weird, the object should be named ch_openai_github_copilot_chat, can you resintall and try again?

@mpthomson
Copy link
Author

Ah, yes! It's resolved after 0d477fc. thank you!

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

2 participants