show re-generate and compeletion based on history length
This commit is contained in:
@@ -371,8 +371,8 @@ export default function ChatBOX(props: {
|
|||||||
...
|
...
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{chatStore.develop_mode && (
|
<p className="text-center">
|
||||||
<p className="text-center rounded">
|
{chatStore.history.length > 0 && (
|
||||||
<button
|
<button
|
||||||
className="p-2 m-2 bg-teal-500 rounded"
|
className="p-2 m-2 bg-teal-500 rounded"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
@@ -388,6 +388,8 @@ export default function ChatBOX(props: {
|
|||||||
>
|
>
|
||||||
Re-Generate
|
Re-Generate
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
{chatStore.develop_mode && chatStore.history.length > 0 && (
|
||||||
<button
|
<button
|
||||||
className="p-2 m-2 bg-yellow-500 rounded"
|
className="p-2 m-2 bg-yellow-500 rounded"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
@@ -396,8 +398,8 @@ export default function ChatBOX(props: {
|
|||||||
>
|
>
|
||||||
Completion
|
Completion
|
||||||
</button>
|
</button>
|
||||||
</p>
|
|
||||||
)}
|
)}
|
||||||
|
</p>
|
||||||
<p className="p-2 my-2 text-center opacity-50 dark:text-white">
|
<p className="p-2 my-2 text-center opacity-50 dark:text-white">
|
||||||
{chatStore.responseModelName && (
|
{chatStore.responseModelName && (
|
||||||
<>Generated by {chatStore.responseModelName}</>
|
<>Generated by {chatStore.responseModelName}</>
|
||||||
|
|||||||
Reference in New Issue
Block a user