Skip to content

Commit

Permalink
feat: if no messages set first message
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 14, 2024
1 parent 5d8c843 commit bac6a73
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/ai.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,3 +439,20 @@
<!-- <div id="aiContent" component key="content"></div> -->
<a id="aiAction" actions="timeout(1000), save, reset"></a>
</form>

<!-- If no aiConversation execute -->
<form array="aiConversations" object hidden>
<input key="user_id" value="$user_id" />
<input key="role" value="assistant" />
<span key="html"><p>Hello! How can I assist you today?</p></span>
<span key="content">Hello! How can I assist you today?</span>
<input
key="$length"
filter
filter-limit="1"
input-next
input-attribute="$click"
input-if="0"
save="false" />
<button actions="save"></button>
</form>

0 comments on commit bac6a73

Please # to comment.