mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 18:21:37 +00:00
Fixed missed time for first block
This commit is contained in:
parent
f84b307b5e
commit
61df1d644e
@ -122,7 +122,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<SettingsDialo
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (this.chatThread is null)
|
if (this.chatThread is null || this.chatThread.Blocks.Count < 2)
|
||||||
{
|
{
|
||||||
return new ChatThread
|
return new ChatThread
|
||||||
{
|
{
|
||||||
@ -141,6 +141,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<SettingsDialo
|
|||||||
// that includes the loaded document paths and a standard message about the previous analysis session:
|
// that includes the loaded document paths and a standard message about the previous analysis session:
|
||||||
new ContentBlock
|
new ContentBlock
|
||||||
{
|
{
|
||||||
|
Time = this.chatThread.Blocks.First().Time,
|
||||||
Role = ChatRole.USER,
|
Role = ChatRole.USER,
|
||||||
HideFromUser = false,
|
HideFromUser = false,
|
||||||
ContentType = ContentType.TEXT,
|
ContentType = ContentType.TEXT,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user