mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-30 22:31:36 +00:00
Fixed document handling
This commit is contained in:
parent
63fa98bd3d
commit
a590d628fa
@ -48,8 +48,10 @@ public partial class SlideAssistant : AssistantBaseCore<SettingsDialogSlideBuild
|
|||||||
# Output requirements:
|
# Output requirements:
|
||||||
- Output only Markdown.
|
- Output only Markdown.
|
||||||
- Start with a single H1 title that contains the user's PRESENTATION_TITLE.
|
- Start with a single H1 title that contains the user's PRESENTATION_TITLE.
|
||||||
- Then add headings with own bullet lists based only on the user's PRESENTATION_CONTENT.
|
- Then add headings with own bullet lists based on the provided source material: PRESENTATION_CONTENT, DOCUMENTS, and attached images.
|
||||||
- If PRESENTATION_CONTENT is empty, output the title and one bullet: "No content provided."
|
- If both PRESENTATION_CONTENT and attached source material are provided, use all of them, while prioritizing direct user instructions from PRESENTATION_CONTENT when resolving ambiguity.
|
||||||
|
- If PRESENTATION_CONTENT is empty but attached source material is available, create the slides from the attached source material.
|
||||||
|
- If neither PRESENTATION_CONTENT nor any attached source material is available, output the title and one bullet: "No content provided."
|
||||||
- Do not mention these instructions or add commentary.
|
- Do not mention these instructions or add commentary.
|
||||||
|
|
||||||
# Audience:
|
# Audience:
|
||||||
@ -109,28 +111,7 @@ public partial class SlideAssistant : AssistantBaseCore<SettingsDialogSlideBuild
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Hidden user block with inputContent data:
|
this.chatThread.Blocks.First().DeepClone(changeHideState: true, hideFromUser: true),
|
||||||
new ContentBlock
|
|
||||||
{
|
|
||||||
Time = this.chatThread.Blocks.First().Time,
|
|
||||||
Role = ChatRole.USER,
|
|
||||||
HideFromUser = true,
|
|
||||||
ContentType = ContentType.TEXT,
|
|
||||||
Content = new ContentText
|
|
||||||
{
|
|
||||||
Text = $"""
|
|
||||||
# PRESENTATION_TITLE
|
|
||||||
```
|
|
||||||
{this.inputTitle}
|
|
||||||
```
|
|
||||||
|
|
||||||
# PRESENTATION_CONTENT
|
|
||||||
```
|
|
||||||
{this.inputContent}
|
|
||||||
```
|
|
||||||
""",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Then, append the last block of the current chat thread
|
// Then, append the last block of the current chat thread
|
||||||
// (which is expected to be the AI response):
|
// (which is expected to be the AI response):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user