Merge pull request #621 from iceljc/master
refine email sender and image generator prompt
This commit is contained in:
commit
1a42d91192
|
|
@ -63,7 +63,7 @@ public class RoleDialogModel : ITrackableMessage
|
|||
/// It's ideal to render in rich content in UI.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public object Data { get; set; }
|
||||
public object? Data { get; set; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]
|
||||
public string ImageUrl { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
Please call handle_email_sender if user wants to send email.
|
||||
** Please take a look at the conversation and decide whether user wants to send email with files/attachments/images or not.
|
||||
** Please take a look at the conversation and decide whether user wants to send email.
|
||||
** If yes, then decide whether user wants to send email with files/attachments/images or not.
|
||||
** If user does not want to send email explicitly or only upload images or files, please do not respond anything email related message.
|
||||
** Please call handle_email_sender if user wants to send email.
|
||||
|
|
@ -1 +1,2 @@
|
|||
Please call generate_image if user wants you to provide or generate an image or picture.
|
||||
** Please call generate_image if user wants you to provide or generate an image or picture.
|
||||
** If user does not generate image explicitly, please do not call generate_image.
|
||||
|
|
@ -43,6 +43,7 @@ public class SummaryPlanFn : IFunctionCallback
|
|||
var msgCopy = RoleDialogModel.From(message);
|
||||
await fn.InvokeFunction("get_table_definition", msgCopy);
|
||||
var ddlStatements = msgCopy.Content;
|
||||
message.Data = null;
|
||||
|
||||
// Summarize and generate query
|
||||
var summaryPlanPrompt = await GetPlanSummaryPrompt(task, message.Content, ddlStatements);
|
||||
|
|
|
|||
Loading…
Reference in a new issue