LostRuins/lite.koboldai.net

Excessive (wrong?) data when saving.

neph1 opened this issue · 1 comments

neph1 commented

I've been looking through my saved_story.json and noticed there seemed to be unnecessary or excessive data stored. In the example below, notice how our conversation ends up in both "actions" and "actions_metadata". Also, shouldn't all this be in "memory"?
Also, my "Instruction" from my writing helper bot has ended up in this chat as well. Presumably it stayed loaded while loading another scenario.

My apologies if I have misunderstood how it's supposed to work.

{"gamestarted":true,"prompt":"\nEmily: Oh heyy. Haven't heard from you in a while. What's up?","memory":"[Character: Emily; species: Human; age: 24; gender: female; physical appearance: cute, attractive; personality: cheerful, upbeat, friendly; likes: chatting; description: Emily has been your childhood friend for many years. She is outgoing, adventurous, and enjoys many interesting hobbies. She has had a secret crush on you for a long time.]\n[The following is a chat message log between Emily and you.]\n\nEmily: Heyo! You there? I think my internet is kinda slow today.\nYou: Hello Emily. Good to hear from you :)","authorsnote":"","anotetemplate":"[Author's note: <|>]",

"actions":["\nYou: Hey. How's it going?","\nEmily: It's good! Just had a super fun weekend exploring this cute little town nearby. Saw some amazing views and ate so much yummy food. What about you?"],

"actions_metadata":{"0":{"Selected Text":"\nYou: Hey. How's it going?","Alternative Text":[]},"1":{"Selected Text":"\nEmily: It's good! Just had a super fun weekend exploring this cute little town nearby. Saw some amazing views and ate so much yummy food. What about you?"

,"Alternative Text":[]}},"worldinfo":[],"wifolders_d":{},"wifolders_l":[],"extrastopseq":"","savedsettings":{"my_api_key":"0000000000","home_cluster":"https://horde.koboldai.net","autoscroll":true,"trimsentences":true,"trimwhitespace":true,"opmode":3,"adventure_is_action":false,"adventure_context_mod":true,"chatname":"You","chatopponent":"Emily","instruct_starttag":"###

Instruction: The characters should never reflect, they should act. Never summarize events. Avoid passive writing. Always stay true to the characters.","instruct_endtag":"###

Response:","instruct_has_newlines":true,"instruct_has_markdown":false,"persist_session":true,"speech_synth":"0","beep_on":false,"image_styles":"","generate_images":"","img_autogen":false,"img_allownsfw":true,"save_images":true,"case_sensitive_wi":false,"last_selected_preset":"9999","enhanced_chat_ui":true,"multiline_replies":true,"idle_responses":"","idle_duration":"60","export_settings":true,"invert_colors":false,"max_context_length":2048,"max_length":128,"auto_ctxlen":true,"auto_genamt":true,"rep_pen":1.08,"rep_pen_range":256,"rep_pen_slope":0.7,"temperature":1.3,"top_p":0.92,"top_k":0,"top_a":0,"typ_s":1,"tfs_s":1,"sampler_order":[6,0,1,2,3,4,5]}}

The current json format is required for compatibility with the main KoboldAI client, which expects the data to be formatted in this way.