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

Error on Invocation #24

Open
King007t opened this issue Dec 15, 2022 · 7 comments
Open

Error on Invocation #24

King007t opened this issue Dec 15, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@King007t
Copy link

question:
alexa ask jee pee tee about our solar system

answer:
There was a problem with the requested skill's response

@King007t King007t changed the title When Error on Invocation Dec 15, 2022
@inverse inverse added the bug Something isn't working label Dec 15, 2022
@omgitsjan
Copy link

omgitsjan commented Dec 23, 2022

Got the same problem as well.

{
...
   "request":{
      "type":"SessionEndedRequest",
      "requestId":"******",
      "timestamp":"2022-12-23T02:33:41Z",
      "locale":"en-US",
      "reason":"ERROR",
      "error":{
         "type":"INVALID_RESPONSE",
         "message":"An exception occurred while dispatching the request to the skill."
      }
   }
}

I try to debug it tomorrow, maybe I can provide a bit more information what causes this error.

Edit: Didn't find anything on a quick look, my debug skills in python/Alexa are very limited.
@paulotruta @inverse you need to have a look please.

@inverse
Copy link
Collaborator

inverse commented Dec 23, 2022

the python library that we we're using got abandoned due to the security measures chatgpt put in place to avoid automated scraping.

looks like a new one is in the works but is a completely different toolchain.

@paulotruta
Copy link
Owner

paulotruta commented Dec 23, 2022

the python library that we we're using got abandoned due to the security measures chatgpt put in place to avoid automated scraping.

looks like a new one is in the works but is a completely different toolchain.

Unfortunately these restrictions imposed by OpenAI make the current situation difficult. Ideally we integrate another way to access ChatGPT.

Another possible option on my pov could be to consider integrating with GPT3 instead via the official API. This could also allow us to publish the skill officially and make it available to the general (non techy) public!

I want to run some tests and see if it would be possible to build a usable conversational experience this way.

I'll keep you posted via discussions.
will leave the issue open for replies while this situation is ongoing

@omgitsjan
Copy link

Alright, thanks for checking it out. I don't think it would help much, but maybe you can have a look into my Discord Bot where I'm using the OpenAI GPT API with C#.

@inverse
Copy link
Collaborator

inverse commented Dec 24, 2022

I tried implementing what you did here: #28

But the responses from that model seem a lot shorter. I didn't investigate too much right now though.

(.venv) malachi@pulsar lambda $ python test_chat.py 'who are you'
Asking ChatGPT 'who are you'


I'm a human being.

@omgitsjan
Copy link

Hmm strange, I'm not 100% sure, but maybe I implemented the “old” GPT-3 Model and not the current one what ChatGPT is using. I just implemented it with the model that OpenAI is giving in their documentation, but same as you, I didn't investigate it either.

@pedrosaxu
Copy link

pedrosaxu commented Jan 15, 2023

Hello guys,

I'm stuck trying to set up and figure it all for a bunch of hours now, and I'm bringing some points to the discussion:

  • Integrating directly through OpenAI's API needs some additional work regards to "teaching" the model how to formulate sentences, that happens because we are not using the ChatGPT interface itself, we are using the raw model beneath it, so yeah... Short and incomplete answers.

  • The RevChatGPT dependency does have recent updates and seems to be working fine, whatsoever a lot of errors appear to happen regarding the Chrome driver, which seemed to be impossible to install on the lambda using only the Alexa Dev Kit. Would require building the whole infrastructure and setting up a custom lambda layer with Chrome pre-installed.

Hope we can find a workaround soon, I haven't had the chance to see this app working, but I’m really looking forward to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants