• Resolved twohills

    (@twohills)


    Links to ChatGPT fine, API key is good, regular ChatGPT works normally.

    When I try my custom GPT Assistant, the bot greets me, but when I attempt to talk to it, it processes my chat then I get

    Error: Oops! Something went wrong on our end. Please try again later

    and I see in the logs multiple warnings including

    file_get_contents(https://api.openai.com/v1/threads//runs): Failed to open stream: no suitable wrapper could be found

    Plugin: Chatbot ChatGPT
    File: /wp-content/plugins/chatbot-chatgpt/includes/chatbot-chatgpt-call-gpt-assistant.php
    Line: 87

    file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0

    Custom buttons arent showing up either, which I assume is related.

    I’m on a hosted WP server. For security reasons, I doubt I or they want to turn it on.

    I tried clear cookies and refresh cache. tried a different machine where I’m not logged on. (There seems to be no way to reset a session)

    I’m using

    [chatbot_chatgpt style=”embedded” assistant=”asst_daof7JVQhmkzC4x8cThJ9E2W”] 

    It also fails with floating option, and with defining as primary.

    • This topic was modified 10 months, 3 weeks ago by twohills.
    • This topic was modified 10 months, 3 weeks ago by twohills.
    • This topic was modified 10 months, 3 weeks ago by twohills.
    • This topic was modified 10 months, 3 weeks ago by twohills.
    • This topic was modified 10 months, 3 weeks ago by twohills.
    • This topic was modified 10 months, 3 weeks ago by twohills.
    • This topic was modified 10 months, 3 weeks ago by twohills.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter twohills

    (@twohills)

    It doesn’t clean anything up when you deinstall it, so a deinstall and reinstall achieved nothing

    Plugin Author kognetiks

    (@kognetiks)

    Hello twohills (@twohills),

    In the copy paste is looks like in the copy paste you may have used (slanted quotes) versus ” (regular quotes).

    [chatbot_chatgpt style=”embedded” assistant=”asst_daof7JVQhmkzC4x8cThJ9E2W”]

    This sometimes causes a problem.

    [chatbot_chatgpt style=embedded assistant=asst_daof7JVQhmkzC4x8cThJ9E2W]

    Becuase parameters are not multiple words, you can omit the quotes altogther.

    Then things should start working as expected.

    As to you second comment on reinstall not cleaning up, I have not yet implemented a clean sweep options upon deactivation and plugin deletion.

    I’ll be sure to include this in the next version.

    Thank you for taking the time to share your valuable feedback, as it helps me continually improve and provide a better experience for our users.

    Stephen

    Thread Starter twohills

    (@twohills)

    Hi Stephen

    No that’s not it.

    [chatbot_chatgpt style=embedded] successfully opens vanilla ChatGPT (even with Use Custom GPT Assistant Id set to Yes )

    [chatbot_chatgpt style=embedded assistant=asst_daof7JVQhmkzC4x8cThJ9E2W]?or [chatbot_chatgpt style=embedded assistant=primary]?throws the same error.

    See the log messages. i believe allow_url_fopen=0 is blocking it?

    • This reply was modified 10 months, 3 weeks ago by twohills.
    • This reply was modified 10 months, 3 weeks ago by twohills.
    Thread Starter twohills

    (@twohills)

    P.S> is it necessary for Knowledge Navigator to have completed?

    Ignore that, it has completed

    • This reply was modified 10 months, 3 weeks ago by twohills.
    Plugin Author kognetiks

    (@kognetiks)

    Are the models the same in both the chatbot and the assistant, i.e., gpt-4-turbo in Chatbot ChatGPT and gpt-4-1106-preview in GPT Assistants. It shouldn’t matter that they’re the same or different. Also check that you’ve turned “Retrieval” on in the Tools section of the Assistant. I’m think that the issue is with the configuration of the Assistant becuase you reported that you can access GPT orginal, i.e., [chatbot_chatgpt]. Let me know what you find out.

    Thread Starter twohills

    (@twohills)

    Yes gpt-4-turbo in Chatbot ChatGPT and gpt-4-1106-preview in GPT Assistants.

    Yes turned “Retrieval” on in the Tools section of the Assistant

    There are all sorts of session errors show up in WP debug log. These don’t appear when the vanilla ChatGPT is used.

    I can’t see any messages from the plugin, even though I have WP_debug on and Chatbot Diagnostics = Error.

    • This reply was modified 10 months, 3 weeks ago by twohills.
    • This reply was modified 10 months, 3 weeks ago by twohills.
    • This reply was modified 10 months, 3 weeks ago by twohills.
    Thread Starter twohills

    (@twohills)

    The fact that session initiation messages show up, and the custom buttons don’t appear with either GPT, makes me wonder about the plug-in initiation.

    Thread Starter twohills

    (@twohills)

    I even upped the token limit to 4050. No difference.

    Interesting, the “three dots” chat animation starts as if it is replying, then the error message happens

    Thread Starter twohills

    (@twohills)

    Also, I don’t know if this helps, but the Knowledge Navigator Analysis contains some weird data. I assume it is because we have a mix of Vietnamese and English posts on the website (all the GPT training files were in English)

    n?¤ 0.017880343
    h???o 0.017355933
    s???o 0.01627686
    agile 0.016125588
    team 0.01604491
    gi 0.016034825
    system 0.01602474
    b 0.016004571
    mu?? 0.015702027
    vi?£?an 0.015369229

    Would that upset it?

    • This reply was modified 10 months, 3 weeks ago by twohills.
    Plugin Author kognetiks

    (@kognetiks)

    Thank you for the additional information.

    Let me address the special characters, they’re unicode characters that are not handled correctly. I’ve identified where the problem is and have a update ready to go in version 1.7.6 (to be released soon – still have some more testing to complete).

    Can you go to the Messages tab on the Chatbot ChatGPT settings and report the values. I am especially interested in the results in the “API Test”, it should report “API STATUS: Success: Connectino to ChatGPT API was successful!” or an error if there is a problem. I’d be especially keen to know if there is an error and what the error message is.

    In an earlier message, I believe that you said everything is fine access the GPT LLM if you use the shortcode without any parameters, i.e. [chatbot_chatgpt]. If that isn’t working then there may be a problem elsewhere. However, if that is working, then the problem lies with the Assisstant.

    Perhaps you could create another assistant? And try that?

    And, if all else fails, we can turn on all the diagnostics statements remarked out in the plugin and view the error log after running the plugin.

    Let me know what you find out.

    Thread Starter twohills

    (@twohills)

    It’s that Vietnamese character set, it’s mad ?? Thanks. We can wait for that.

    Yes the API connects fine, the vanilla ChatGPT works fine. This is a test page with only the bot https://tealunicorn.com/a-tealgpt-called-om/

    Good idea to try a different Assistant. I created one called Duh, a minimal Assistant. Same problem.

    Plugin Author kognetiks

    (@kognetiks)

    I should have a beta version with new code using Curl available to download shortly from github. Would you be willing to test?

    Plugin Author kognetiks

    (@kognetiks)

    twohills (@twohills)

    A fix has been applied. I release version 1.7.6. Please update the plugin and let me know if things are now working as expected.

    katjadian

    (@katjadian)

    Jag hade ocks? samma situation, men jag t?nkte p? en annan l?sning, som ?r att anv?nda ett annat verktyg Chat GPT Svenska.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error opening GPT Assistant’ is closed to new replies.