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

Had over 20 custom prompts, new update deleted them? #68

Closed
reconrad48 opened this issue Dec 23, 2022 · 35 comments
Closed

Had over 20 custom prompts, new update deleted them? #68

reconrad48 opened this issue Dec 23, 2022 · 35 comments

Comments

@reconrad48
Copy link

Please tell me this update didn't delete my custom prompts? When the update installed, my custom prompts that I worked very hard on developing weren't there.. and I opened the config folder on windows and I don't see it there either. Man, please tell me that this update was not written in such a way to delete stuff like that.

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

I'm very sorry, it was an oversight on my part, because of the data structure change, some of the configuration will be overwritten, otherwise the program will report an error. So I have released a minor version. Because the program is not yet in stable version, many configurations may change.

@reconrad48
Copy link
Author

I found them in a .json file, but I am having hard time importing them back in... seems when I go to Sync Custom and add the file path, it just shows the file path and file but doesn't import the individual prompts.

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

You can store the files in json format in the ~/.chatgpt/myconf.json directory

[
  {
    "cmd": "a",
    "act": "aa",
    "prompt": "aaa aaa aaa"
  },
  {
    "cmd": "b",
    "act": "bb",
    "prompt": "bbb bbb bbb"
  }
]

Screenshot 2022-12-24 at 00 19 51

Screenshot 2022-12-24 at 00 20 38

Screenshot 2022-12-24 at 00 23 16

@reconrad48
Copy link
Author

On my screen it doesn't show the "view"...
image

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Please click the sync button first, and make sure the json format is correct, otherwise the parsing will fail.

@reconrad48
Copy link
Author

I tried the sync button first.. nothing happened..
The json file is in the following format
image

@reconrad48
Copy link
Author

My custom prompts were appended to this file, but they are at the end.

@reconrad48
Copy link
Author

Do I have to remove "tags", "enable" etc? Did you remove those parameters in parsing?

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

It is a pure array, not an object, the extra fields will not cause failure, please ignore them:

[
  {
    "cmd": "a",
    "act": "aa",
    "prompt": "aaa aaa aaa"
  },
  {
    "cmd": "b",
    "act": "bb",
    "prompt": "bbb bbb bbb"
  }
]

@reconrad48
Copy link
Author

reconrad48 commented Dec 23, 2022

Yeah I don't know, it doesn't work. I have tried to set the path... sync, clean the json file, etc and it won't bring in the prompts.

@reconrad48
Copy link
Author

image

@reconrad48
Copy link
Author

image

@reconrad48
Copy link
Author

it has the path right, but doesn't see the prompts

image

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Could you please check the console of devtools for errors?

Menu -> Help

Screenshot 2022-12-24 at 00 56 33

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

it has the path right, but doesn't see the prompts

image

This data structure has changed, so it will not be displayed.

@reconrad48
Copy link
Author

image

@reconrad48
Copy link
Author

it has the path right, but doesn't see the prompts
image

This data structure has changed, so it will not be displayed.

I don't know what that means... that is what I assigned in the sync custom tab...

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Does the sync button in Sync Prompts work?

Screenshot 2022-12-24 at 01 03 35

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

image

This problem is caused by the lack of file operation permission, and I am working on it.

@reconrad48
Copy link
Author

No, the "Sync Prompts" does not pull prompts from f/awesome-chatgpt... etc

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Is the version you have installed v0.6.4?

@reconrad48
Copy link
Author

I think so, got a dialog message saying new update is available would you like to install etc... happened an hour ago

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Menu -> ChatGPT -> About

Screenshot 2022-12-24 at 01 26 24

@reconrad48
Copy link
Author

I don't have it on my mac, this is windows 10... also, just a FYi, when i manually added a prompt, it did not save when I restarted ChatGPT

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

The windows menu is similar, you should be able to see the menu about. I'd like to confirm your app version first, because just now I posted several versions to fix the path permissions issue. If it's already the latest version, I need to try other solutions.

If you are unable to view the version, try downloading and installing https://github.com/lencx/ChatGPT/releases/tag/v0.6.4.

@reconrad48
Copy link
Author

Unfortunately there isn't an "about" in windows

@reconrad48
Copy link
Author

I did just install the "lastest" windows version though... 3 seconds ago.

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Thanks, I'm looking for a solution, as a transitional solution you could try creating ~/.chatgpt/chat.model.cmd.json:

{
  "name": "ChatGPT CMD",
  "last_updated": 1671816282245,
  "data": [
    {
      "act": "aa",
      "cmd": "a",
      "enable": true,
      "prompt": "aaa aaa aaa"
    },
    {
      "act": "bb",
      "cmd": "b",
      "enable": true,
      "prompt": "bbb bbb bbb"
    }
  ]
}

@reconrad48
Copy link
Author

Unfortunately, that doesn't work either... Can I go back to a version that worked for me?

and at least on my windows, the / no longer brings up the list of prompts. That was broken before I updated when I did have prompts synced, as well as my custom prompts... the / just stopped doing anything.

@lencx
Copy link
Owner

lencx commented Dec 23, 2022

Remember to backup your data and then empty the ~/.chatgpt directory and let it reinitialize. https://github.com/lencx/ChatGPT/releases/tag/v0.5.1

@reconrad48
Copy link
Author

Kind of a pain, I would rather not lose all of my chat history. But I back them up and try that...

@reconrad48
Copy link
Author

Okay so that worked, I went back to the earlier version and my copied my prompt json file over to .chatgpt and it pulled them. I did want to let you know that at least my chatgpt desktop version for windows is using MS Edge webviewer and not chromium... not sure if that is what you intended or not. Just an FYI.

@reconrad48
Copy link
Author

image

@nhan000
Copy link

nhan000 commented Dec 24, 2022

Hi @reconrad48 what version works on Windows for you? I'm using Windows 10 and I'm having a hard time getting it to work. Can't seem to add anything in the "Language Model" tab: can't Sync Prompts, can't Sync Custom, can't add User Custom. Struggle for the last hour and still couldn't get it to work.
Edit: I've downgrade from 0.6.4 to 0.6.0 and both didn't work.
But 0.5.1 works for me.

@lencx
Copy link
Owner

lencx commented Dec 24, 2022

Please try v0.6.9, the problem should be fixed.

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

3 participants