mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: css + added llm in every query (#1700)
* fix: css + added llm in every query * fix: nested css
This commit is contained in:
@@ -176,6 +176,7 @@ export class PiChatStore implements IPiChatStore {
|
||||
const dialogueHistory = this.activeChat.dialogue;
|
||||
const newDialogue: TDialogue = {
|
||||
query,
|
||||
llm: this.activeModel?.id,
|
||||
};
|
||||
|
||||
try {
|
||||
@@ -206,6 +207,7 @@ export class PiChatStore implements IPiChatStore {
|
||||
is_temp: false,
|
||||
workspace_in_context: this.isInWorkspaceContext,
|
||||
source: ESource.WEB,
|
||||
llm: this.activeModel?.id,
|
||||
context: this.userStore.data
|
||||
? {
|
||||
first_name: this.userStore.data.first_name,
|
||||
@@ -218,10 +220,6 @@ export class PiChatStore implements IPiChatStore {
|
||||
? { ...payload, [this.currentFocus.entityType]: this.currentFocus.entityIdentifier }
|
||||
: payload;
|
||||
|
||||
if (isNewChat) {
|
||||
payload.llm = this.activeModel?.id;
|
||||
newDialogue.llm = this.activeModel?.id;
|
||||
}
|
||||
// Api call here
|
||||
const response = await fetch(`${PI_BASE_URL}/api/v1/chat/get-answer/`, {
|
||||
method: "POST",
|
||||
|
||||
@@ -825,22 +825,23 @@ html.todesktop .header button {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.pi-chat-root li, .pi-chat-root ui{
|
||||
display: list-item;
|
||||
list-style-type: disc;
|
||||
margin-left: 0.9rem;
|
||||
}
|
||||
.pi-chat-root *{
|
||||
margin: revert;
|
||||
font-size: revert;
|
||||
font-weight: revert;
|
||||
color: revert;
|
||||
text-decoration: revert;
|
||||
text-indent: revert;
|
||||
border-collapse: revert;
|
||||
}
|
||||
|
||||
.pi-chat-root table, tr, td, th{
|
||||
border-width: revert;
|
||||
|
||||
.pi-chat-root {
|
||||
* {
|
||||
margin: revert;
|
||||
font-size: revert;
|
||||
font-weight: revert;
|
||||
color: revert;
|
||||
text-decoration: revert;
|
||||
text-indent: revert;
|
||||
border-collapse: revert;
|
||||
}
|
||||
li, ui{
|
||||
display: list-item;
|
||||
list-style-type: disc;
|
||||
margin-left: 0.9rem;
|
||||
}
|
||||
table, tr, td, th {
|
||||
border-width: revert;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user