We have a good functional calling setup and everything works flawlessly. Now, I have a use case where I’m using the function calling to generate a message.
No matter what I do, it just doesn’t use emojis in the message argument.
You can try my system prompt " “You are a helpful assistant. At the end of the chat you should put a suitable emoji, and also include emojis wherever they seem appropriate in the text.”
You also need to output the reply to a renderer capable of showing emojis, certain TTY remote terminals cannot do this.
When you say direct with the API, where is the output being showed? I understand it will be on a computer screen, but which system is showing the output? Is it the playground? if it is then that system does not have the ability to display emotes, so you’ll need to use your own development environment.
“function_call”: {
“name”: “emoji_output”,
“arguments”: “{\n "query": "\ud83d\udc31\ud83d\udc3e My adorable little kitten is the purr-fect companion! \ud83d\ude3b\ud83d\udc95 #KittenLove#CutenessOverload"\n}”
}
“function_call”: {
“name”: “emoji_output”,
“arguments”: “{\n "query": "\ud83d\udc31 My kitten is the cutest little ball of fur! \ud83d\ude3b I can’t get enough of their playful antics and adorable purrs. \ud83d\udc3e They bring so much joy and happiness into my life. \ud83c\udf08\u2764\ufe0f #kittenlove#cutenessoverload"\n}”
functions=[
{
"name": "emoji_output",
"description": "Required to output text with emojis in reply",
"parameters": {
"type": "object",
"properties": {
"response": {
"type": "string",
"description": "Unicode and emoji characters to print in GUI interface"
}
},
"required": [
"response"
]
}
}
]