flocko-motion / chatgamelab

Educational GPT-Chat based text adventure studio
GNU General Public License v3.0
0 stars 0 forks source link

failed parsing gpt output: invalid character '/' looking for beginning of value #6

Closed TausendMedien closed 3 months ago

TausendMedien commented 8 months ago

GPT Input:

{ "type": "player-action", "action": "Wake me, when we arrive in New York. I am tired,.", "status": [ { "name": "Pound", "value": "19950" }, { "name": "Time", "value": "79 days, 18 hours, 30 minutes" }, { "name": "Location", "value": "en route to New York" } ] } GPT Output:

{ "chapterId": 1, "sessionHash": "", "type": "player-action", "story": "As you wish, Sir Phileas Fogg. I shall ensure you are undisturbed until our arrival. The gentle hum of the steamrocket's engines and the soft sway of its travel should afford you a restful slumber. Should any event of significance transpire, I will wake you posthaste. Sleep well, Sir, for once we reach New York, our grand adventure continues apace.", "status": [ {"name": "Pound", "value": "19950"}, {"name": "Time", "value": "79 days, 8 hours, 30 minutes"}, // Assuming a 10-hour flight approximately {"name": "Location", "value": "New York"} ], "image": "the cabin of the steamrocket, lights dimmed for night travel, stars twinkling through the portholes", "error": "", "rawInput": "", "rawOutput": "", "assistantInstructions": "" } GPT Generated Image Prompt:

flocko-motion commented 8 months ago

This is an error generated by GPT: it generated invalid JSON syntax containing a //-comment. That's valid in JS, but not in JSON.

Possible solution: "explain" the issue to GPT and ask it to watch its syntax.

flocko-motion commented 3 months ago

Duplicate of #20

flocko-motion commented 3 months ago

Closing the duplicate and linking in parent