File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const getRecommendQuestions = () => {
1515
1616const questions = ' []'
1717const retrieveQuestions = () => {
18- recommendQuestionRef .value .getRecommendQuestions (10 )
18+ recommendQuestionRef .value .getRecommendQuestions (10 , true )
1919 recentQuestionRef .value .getRecentQuestions ()
2020}
2121const quickAsk = (question : string ) => {
Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ function clickQuestion(question: string): void {
4848
4949const stopFlag = ref (false )
5050
51- async function getRecommendQuestions(articles_number : number ) {
51+ async function getRecommendQuestions(articles_number : number , isRetrieve : false ) {
5252 recommendedApi .get_datasource_recommended_base (props .datasource ).then ((res ) => {
5353 if (res .recommended_config === 2 ) {
5454 questions .value = res .questions
55- } else if (currentChat .value .recommended_generate ) {
55+ } else if (currentChat .value .recommended_generate && ! isRetrieve ) {
5656 questions .value = currentChat .value .recommended_question as string
5757 } else {
5858 getRecommendQuestionsLLM (articles_number )
You can’t perform that action at this time.
0 commit comments