Skip to content

chat resume failure #311

@yglcode

Description

@yglcode

Reproduce step:

  1. export GPTSCRIPT_CHAT_STATE=null; and run a chat.gpt script and save the returned initial state to GPTSCRIPT_CHAT_STATE.
  2. rerun the chat.gpt script should be able to resume; however resume failed.

should the following line marshal resp.State in stead of resp?
data, err := json.Marshal(resp.State)

data, err := json.Marshal(resp)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions