feat(app): lint & beautify
This commit is contained in:
parent
9db847c366
commit
b9509a5d41
3 changed files with 9 additions and 7 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue