feat:add switch to enable/disable ai chat

This commit is contained in:
hackerESQ
2024-10-31 17:33:48 -05:00
parent 8007e644d6
commit 791ba64dba
5 changed files with 26 additions and 7 deletions
+2
View File
@@ -161,6 +161,7 @@
</x-ib-card>
@if(config('services.ai_chat_enabled'))
{{-- // TODO: add to system prompt:
// Additionally, here is some recent news about {$this->holding->symbol}:
// And their latest SEC filings: --}}
@@ -210,6 +211,7 @@
Below is the question from the investor. Considering these facts, provide a concise response to the following question (give a direct response). Limit your response to no more than 75 words and consider using a common decision framework. Use github style markdown for any formatting:"
])
@endif
</div>
+2
View File
@@ -153,6 +153,7 @@
</x-ib-card> --}}
@if(config('services.ai_chat_enabled'))
@livewire('ai-chat-window', [
'chatable' => $portfolio,
'suggested_prompts' => [
@@ -176,6 +177,7 @@
Below is the question from the investor. Considering these facts, provide a concise response to the following question (give a direct response). Limit your response to no more than 75 words and consider using a common decision framework. Use github style markdown for any formatting:"
])
@endif
</div>
</div>