Skip to content

Commit

Permalink
Chat API uses only datasources selected by default, like Chat UI
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Aug 31, 2023
1 parent 43c53e5 commit 4697248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/lib/api/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ export async function* newChat(
return;
}

const ds = dsRes.value;
const ds = dsRes.value.filter((d) => d.assistantDefaultSelected);

configRetrieval.DATASOURCE.data_sources = ds.map((d) => {
return {
Expand Down

0 comments on commit 4697248

Please sign in to comment.