You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't happen every single time, but if you try 2-3 times its likely going to be reproducible with any of the example prompts
Response from /detect route has "json\n[\"generate-template-prompt\"]\n" instead of ["generate-template-prompt"].
We probably will get rid of these problems if we switch to the new JSON Mode
{
"id": "command-detect",
"type": "json",
"success": false,
"tokens": {
"prompt": -1,
"completion": -1
},
"data": {
"status": 500,
"error": "ai.command-detect.parseError",
"message": "Unexpected token ` in JSON at position 0",
"debug": "Failed to parse the completion Unexpected token ` in JSON at position 0"
},
"llmMessages": [
[
"system",
"Given a prompt where a user requests you to perform a task, you should determine what's the task type.\n\nAvaliable tasks are provided below as an object with task_name:task_description pairs:\n\n```json\n{\"copywriter\":\"rewrites, rephrases, shortens, increases length or translates text\",\"edit-styles\":\"edits styles\",\"generate-template-prompt\":\"handles a user interface generation request\",\"delete-instance\":\"deletes elements\"}\n```\n\nThe task description can help you infer the task name to pick. For example if the user is asking to translate you should respond with [\"copywrite\"]\n\nRespond with a valid JSON array of task names that are relevant for the user request. Start with [\n"
],
[
"user",
"User request:\n\n```\nCreate a hero section with a heading, subheading in white, CTA button and an image of a mountain in the background, add light blur to the image\n```\n"
],
[
"assistant",
"```json\n[\"generate-template-prompt\"]\n```"
]
]
}
The text was updated successfully, but these errors were encountered:
This doesn't happen every single time, but if you try 2-3 times its likely going to be reproducible with any of the example prompts
Response from /detect route has "
json\n[\"generate-template-prompt\"]\n
" instead of ["generate-template-prompt"].We probably will get rid of these problems if we switch to the new JSON Mode
The text was updated successfully, but these errors were encountered: