feat(app): lint & beautify

This commit is contained in:
ItzCrazyKns 2024-10-15 16:21:29 +05:30
parent 9db847c366
commit b9509a5d41
3 changed files with 9 additions and 7 deletions

View File

@ -115,11 +115,7 @@ const createBasicAcademicSearchRetrieverChain = (llm: BaseChatModel) => {
const res = await searchSearxng(input, {
language: 'en',
engines: [
'arxiv',
'google scholar',
'pubmed',
],
engines: ['arxiv', 'google scholar', 'pubmed'],
});
const documents = res.results.map(

View File

@ -12,7 +12,7 @@ router.get('/', async (req, res) => {
const [chatModelProviders, embeddingModelProviders] = await Promise.all([
getAvailableChatModelProviders(),
getAvailableEmbeddingModelProviders(),
]);
]);
Object.keys(chatModelProviders).forEach((provider) => {
Object.keys(chatModelProviders[provider]).forEach((model) => {

View File

@ -121,7 +121,13 @@ router.post('/', async (req, res) => {
return res.status(400).json({ message: 'Invalid focus mode' });
}
const emitter = searchHandler(body.query, history, llm, embeddings, body.optimizationMode);
const emitter = searchHandler(
body.query,
history,
llm,
embeddings,
body.optimizationMode,
);
let message = '';
let sources = [];