• Resolved drharpertherapy

    (@drharpertherapy)


    This is a really cool plugin! I am playing around with gpt-3.5-turbo in the ChatGPT section with “Remember conversation” enabled up to 10.

    I noticed it’s good at remembering things I said in the past, but not good at remember things the AI already said.

    For example, if I send “Can you repeat exactly what you just said”, it is never able to do this.

    If I go here:

    /wp-content/plugins/gpt3-ai-content-generator/classes/wpaicg_chat.php

    And add the following to line 325:

    error_log(print_r($wpaicg_chatgpt_messages, true), 1, “myemail@example.com”);

    Now each time I send a chat, I can see exactly what is being passed along in the messages array.

    I see the system role prompt, followed by all of my recent user role entries, but zero assistant role entries (even though the AI has responded multiple times).

    I’m a bit confused because the code does call for assistant entries:

    $wpaicg_chatgpt_messages[] = array(‘role’ => ‘assistant’, ‘content’ => $wpaicg_chatgpt_message);

    But I am never seeing this getting applied.

    How can we send the assistant’s responses in the message array so it can recall what it has responded to the user?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Option to include Assistant’s responses in new Chat completion requests?’ is closed to new replies.