semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

The ask field is required,but use input

Open hedaiping opened this issue 2 years ago • 3 comments

https://localhost:40443/skills/ChatSkill/functions/Chat/invoke image

hedaiping avatar May 10 '23 05:05 hedaiping

@daiping0323 , we are looking into this

evchaki avatar May 11 '23 21:05 evchaki

Is your browser using a locale other than English?

craigomatic avatar May 19 '23 00:05 craigomatic

The Chatskill has been recently refactored out to its own controller. There is still the /invoke API available, but it does require an "Ask" payload that includes an "Input". For instance: Bash:

curl -X POST -H "Content-Type: application/json" -d '{"Input":"Hello","Variables":[]}' https://localhost:40443/skills/timeskill/functions/today/invoke

PowerShell:

Invoke-WebRequest -Uri https://localhost:40443/skills/timeskill/functions/today/invoke -Method Post -Body '{"Input":"Hello","Variables":[]}' -ContentType "application/json"

adrianwyatt avatar May 24 '23 18:05 adrianwyatt

Hey @daiping0323, looks like we closed in this in this issue thread: https://github.com/microsoft/semantic-kernel/issues/912

You shouldn't be seeing those errors anymore if you have the latest changes from main. Let me know if that's not the case

teresaqhoang avatar Jun 02 '23 18:06 teresaqhoang

Closing as dupe, feel free to reopen if issue persists

teresaqhoang avatar Jun 02 '23 19:06 teresaqhoang