I Installed Plugin Block Vs To Make A Beautiful Chat View With Chat View But I Get This Error Please Help
Have you read the documentation page?
Message id should be an int but you have tried with alphanumeric
Refer Chat View - Kodular Docs here for more info.
Remove the msg and try again
Can you please tell me what I need to do to fix it?
Add message
Id â join (msg) + get globalmsgID
Replace with
Id - get globalmsgID
Same for another add message too
Yes, it did, but this time the AIâs message is not visible, why?
Earlier case also you wont see AI msg due to that error. Make sure you are returning back response in web got text
This is the error I get
deepseek-r1"âobjectâ:âchat.completionââcreated":1745175799âchoices": ("logprobs"nullâ finish_reason":â'stopâânative_finish_reasonâ:âstopââindexâ:0 'message":(ârole":âassistantââcontentâ:âTo solve the expression , we follow the order of operations (PEMDAS/BODMAS):\n\n1. 大*MultipicationttCalculate \î3\times5= 15}.\n2.Additiont: Add the result to 2: .\n\nAnswer;**/\bOxed{17}\ Vâ"refusalâ:nullâreasoning":âOkay, so I need to solve this problem: Find the value of the expression 2 + 3 x 5. Hmm, let me think. I remember something about order of operations from math class. Wait, isnât it like PEMDAS or something? Let me recall. PEMDAS stands for Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. Right, so you do the operations in that order. \n\nSo looking at the expression 2 +3 x 5. There are no parentheses or exponents here. So next is multiplication and division. I see a multiplication symbol between 3 and 5. So I should do that first. 3 multiplied by 5 is 15. Then, after that, I do the addition. So 2 plus 15. That would be 17. \n\nWait, but let me double-check. If l just went left to right without following the order, I would add2 and 3 first, getting 5, then multiply by 5, which would be 25. But thatâs not right because multiplication comes before addition. So yeah, the correct answer should be 17. \n\nl think thatâs it. But maybe I should verify with another example. Like, if the problem was 4 + 6x 2, following the same logic, first mutiply 6 and 2 to get 12, then add 4, which is 16. If I did addition first, it would be 10 x 2 = 20, which is different. So order of operations definitely matters here. \n\nTherefore, applying PEMDAS to the original problem, 2 +3 x 5 equals 17. I think thatâs the right answer. Let me just write it out step by step again to be sure. \n\nFirst step: ldentify operations. Thereâs addition and multiplication. According to PEMDAS, multiplication comes before addition. So compute 3 x 5 =15. Then add that result to 2:2+15=17. Yep, that checks out. \n\nl donât see any other operations or complexities in this problem. No parentheses to change the order no exponents. So lm confident the answer is 17.\T}}ăusageâ: (âprompt_tokensâ:5,'completion_tokens":547"total_tokens":552}}
I wrote Hello and this is what comes out. Whatever I write, this is what comes out.
Pls read the deepseek documentation page. You may not have added the blocks as per their suggestions.
I looked but I didnât understand anything, please help.
It is working but you failed to pick only the proper content from the api response. Is this complete json?
Try this method
When Web1.GotText responseCode responseContent
If responseCode = 200 then
Set Label1.Text to JSON1.GetValue(JSON1.GetValue(JSON1.GetValue(JSON1.GetValue(JSON1.Parse(responseContent), "choices"), "0"), "message"), "content")
End If
This will give you the content on the label
Or
When Web1.GotText responseCode responseContent
If responseCode = 200 then
Set pathResult to JSON1.WalkPath(responseContent, "make a list {choices/0/message/content}")
If not(pathResult is empty) then
Set Label1.Text to pathResult
Else
Set Label1.Text to "Could not find content in response"
End If
Else
Set Label1.Text to "Error: " & responseCode
End If
Try this block. I have tested with the above json response and got succeeded. Remember, initialise the global name with empty list
Thank You My Friend