feat: minor fixes after merge

This commit is contained in:
Siddhant Rai
2025-03-18 18:56:02 +05:30
parent 5b40c5a9d7
commit f4ab85a2bb
4 changed files with 9 additions and 14 deletions

View File

@@ -589,6 +589,7 @@ class Answer(Resource):
retriever=retriever,
conversation_id=conversation_id,
user_api_key=user_api_key,
decoded_token=decoded_token,
isNoneDoc=data.get("isNoneDoc"),
index=None,
should_save_conversation=False,

View File

@@ -1,20 +1,15 @@
import { Fragment, useEffect, useRef, useState } from 'react';
import { useEffect, useState } from 'react';
import { Helmet } from 'react-helmet';
import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux';
import { useNavigate, useParams } from 'react-router-dom';
import ConversationMessages from './ConversationMessages';
import MessageInput from '../components/MessageInput';
import conversationService from '../api/services/conversationService';
import Send from '../assets/send.svg';
import Spinner from '../assets/spinner.svg';
import conversationService from '../api/services/conversationService';
import MessageInput from '../components/MessageInput';
import { selectToken } from '../preferences/preferenceSlice';
import { AppDispatch } from '../store';
import ConversationBubble from './ConversationBubble';
import { Query } from './conversationModels';
import { formatDate } from '../utils/dateTimeUtils';
import ConversationMessages from './ConversationMessages';
import {
addQuery,
fetchSharedAnswer,
@@ -28,7 +23,6 @@ import {
setIdentifier,
updateQuery,
} from './sharedConversationSlice';
import { formatDate } from '../utils/dateTimeUtils';
export const SharedConversation = () => {
const navigate = useNavigate();

View File

@@ -27,10 +27,10 @@ export default function JWTModal({
</div>
<div className="relative mt-5 mb-4">
<Input
name="JWT Token"
type="text"
className="rounded-md"
value={jwtToken}
label="JWT Token"
onChange={(e) => setJwtToken(e.target.value)}
borderVariant="thin"
/>

View File

@@ -6,17 +6,17 @@ import userService from '../api/services/userService';
import CogwheelIcon from '../assets/cogwheel.svg';
import Input from '../components/Input';
import Spinner from '../components/Spinner';
import ToggleSwitch from '../components/ToggleSwitch';
import AddToolModal from '../modals/AddToolModal';
import { ActiveState } from '../models/misc';
import { selectToken } from '../preferences/preferenceSlice';
import ToolConfig from './ToolConfig';
import { APIToolType, UserToolType } from './types';
import ToggleSwitch from '../components/ToggleSwitch';
export default function Tools() {
const { t } = useTranslation();
const token = useSelector(selectToken);
const [isDarkTheme] = useDarkTheme();
const [searchTerm, setSearchTerm] = React.useState('');
const [addToolModalState, setAddToolModalState] =
React.useState<ActiveState>('INACTIVE');