fix: css + added llm in every query (#1700)

* fix: css + added llm in every query

* fix: nested css
This commit is contained in:
Akshita Goyal
2024-11-12 17:21:01 +05:30
committed by GitHub
parent 4f558bc250
commit 8739617535
2 changed files with 20 additions and 21 deletions

View File

@@ -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",

View File

@@ -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;
}
}