File tree Expand file tree Collapse file tree 11 files changed +37
-11
lines changed Expand file tree Collapse file tree 11 files changed +37
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gitbook " : patch
3
+ ---
4
+
5
+ Improve AI Chat context popup
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export function AIChatInput(props: {
72
72
< div className = "absolute inset-x-0 bottom-0 flex items-center px-2 py-2" >
73
73
< Tooltip
74
74
label = {
75
- < div className = "flex flex-col gap-2 p-2" >
75
+ < div className = "flex flex-col gap-3 p-2" >
76
76
< p > { t ( language , 'ai_chat_context_description' ) } </ p >
77
77
< ul className = "flex flex-col gap-2" >
78
78
< li className = "flex items-center gap-2" >
@@ -88,12 +88,15 @@ export function AIChatInput(props: {
88
88
{ t ( language , 'ai_chat_context_previous_messages' ) }
89
89
</ li >
90
90
</ ul >
91
+ < p > { t ( language , 'ai_chat_context_disclaimer' ) } </ p >
91
92
</ div >
92
93
}
93
94
arrow
94
95
>
95
96
< div className = "flex cursor-help items-center gap-1 circular-corners:rounded-2xl rounded-corners:rounded-md px-2 py-1 text-tint/7 text-xs transition-all hover:bg-tint" >
96
- < Icon icon = "glasses-round" className = "size-3.5" /> { ' ' }
97
+ < span className = "-ml-1 circular-corners:rounded-2xl rounded-corners:rounded-md bg-tint-11/7 px-1 py-0.5 font-mono font-semibold text-[0.65rem] text-contrast-tint-11 leading-none" >
98
+ AI
99
+ </ span > { ' ' }
97
100
< span > { t ( language , 'ai_chat_context_title' ) } </ span >
98
101
</ div >
99
102
</ Tooltip >
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ export const de = {
73
73
ai_chat_clear_conversation : 'Unterhaltung löschen' ,
74
74
ai_chat_thinking : 'Denke nach...' ,
75
75
ai_chat_working : 'Arbeite...' ,
76
+ ai_chat_context_badge : 'KI' ,
76
77
ai_chat_context_title : 'Basierend auf Ihrem Kontext' ,
77
78
ai_chat_context_description :
78
- 'Der Docs-Assistent verwendet Ihren Kontext, um Antworten zu generieren und Aktionen durchzuführen.' ,
79
+ 'Der Docs-Assistent verwendet KI und Ihren Kontext, um Antworten zu generieren und Aktionen durchzuführen.' ,
79
80
ai_chat_context_pages_youve_read : 'Seiten, die Sie gelesen haben' ,
80
81
ai_chat_context_info_provided_by_the_site : 'Von der Website bereitgestellte Informationen' ,
81
82
ai_chat_context_previous_messages : 'Vorherige Nachrichten' ,
83
+ ai_chat_context_disclaimer : 'KI-Antworten können Fehler enthalten.' ,
82
84
ai_chat_input_placeholder : 'Fragen, suchen oder Aktion ausführen...' ,
83
85
send : 'Senden' ,
84
86
ai_chat_suggested_questions_title : 'Vorgeschlagene Fragen' ,
Original file line number Diff line number Diff line change @@ -71,12 +71,14 @@ export const en = {
71
71
ai_chat_clear_conversation : 'Clear conversation' ,
72
72
ai_chat_thinking : 'Thinking...' ,
73
73
ai_chat_working : 'Working...' ,
74
+ ai_chat_context_badge : 'AI' ,
74
75
ai_chat_context_title : 'Based on your context' ,
75
76
ai_chat_context_description :
76
- 'Docs Assistant uses your context to generate answers and perform actions.' ,
77
+ 'Docs Assistant uses AI and your context to generate answers and perform actions.' ,
77
78
ai_chat_context_pages_youve_read : "Pages you've read" ,
78
79
ai_chat_context_info_provided_by_the_site : 'Info provided by the site' ,
79
80
ai_chat_context_previous_messages : 'Previous messages' ,
81
+ ai_chat_context_disclaimer : 'AI responses may contain mistakes.' ,
80
82
ai_chat_input_placeholder : 'Ask, search, or take action...' ,
81
83
send : 'Send' ,
82
84
ai_chat_suggested_questions_title : 'Suggested questions' ,
Original file line number Diff line number Diff line change @@ -75,12 +75,14 @@ export const es: TranslationLanguage = {
75
75
ai_chat_clear_conversation : 'Limpiar conversación' ,
76
76
ai_chat_thinking : 'Pensando...' ,
77
77
ai_chat_working : 'Trabajando...' ,
78
+ ai_chat_context_badge : 'IA' ,
78
79
ai_chat_context_title : 'Basado en tu contexto' ,
79
80
ai_chat_context_description :
80
- 'El Asistente de Docs usa tu contexto para generar respuestas y realizar acciones.' ,
81
+ 'El Asistente de Docs usa IA y tu contexto para generar respuestas y realizar acciones.' ,
81
82
ai_chat_context_pages_youve_read : 'Páginas que has leído' ,
82
83
ai_chat_context_info_provided_by_the_site : 'Información proporcionada por el sitio' ,
83
84
ai_chat_context_previous_messages : 'Mensajes anteriores' ,
85
+ ai_chat_context_disclaimer : 'Las respuestas de IA pueden contener errores.' ,
84
86
ai_chat_input_placeholder : 'Pregunta, busca o realiza una acción...' ,
85
87
send : 'Enviar' ,
86
88
ai_chat_suggested_questions_title : 'Preguntas sugeridas' ,
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ export const fr: TranslationLanguage = {
73
73
ai_chat_clear_conversation : 'Effacer la conversation' ,
74
74
ai_chat_thinking : 'Réfléchit...' ,
75
75
ai_chat_working : 'Travaille...' ,
76
+ ai_chat_context_badge : 'IA' ,
76
77
ai_chat_context_title : 'Basé sur votre contexte' ,
77
78
ai_chat_context_description :
78
- "L'Assistant Docs utilise votre contexte pour générer des réponses et effectuer des actions." ,
79
+ "L'Assistant Docs utilise l'IA et votre contexte pour générer des réponses et effectuer des actions." ,
79
80
ai_chat_context_pages_youve_read : 'Pages que vous avez lues' ,
80
81
ai_chat_context_info_provided_by_the_site : 'Informations fournies par le site' ,
81
82
ai_chat_context_previous_messages : 'Messages précédents' ,
83
+ ai_chat_context_disclaimer : "Les réponses de l'IA peuvent contenir des erreurs." ,
82
84
ai_chat_input_placeholder : 'Demander, rechercher ou effectuer une action...' ,
83
85
send : 'Envoyer' ,
84
86
ai_chat_suggested_questions_title : 'Questions suggérées' ,
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ export const ja: TranslationLanguage = {
73
73
ai_chat_clear_conversation : '会話をクリア' ,
74
74
ai_chat_thinking : '考え中...' ,
75
75
ai_chat_working : '作業中...' ,
76
+ ai_chat_context_badge : 'AI' ,
76
77
ai_chat_context_title : 'あなたのコンテキストに基づいて' ,
77
78
ai_chat_context_description :
78
- 'ドキュメントアシスタントはあなたのコンテキストを使用して回答を生成し 、アクションを実行します。' ,
79
+ 'ドキュメントアシスタントはAIとあなたのコンテキストを使用して回答を生成し 、アクションを実行します。' ,
79
80
ai_chat_context_pages_youve_read : '読んだページ' ,
80
81
ai_chat_context_info_provided_by_the_site : 'サイトから提供された情報' ,
81
82
ai_chat_context_previous_messages : '以前のメッセージ' ,
83
+ ai_chat_context_disclaimer : 'AIの回答には誤りが含まれる場合があります。' ,
82
84
ai_chat_input_placeholder : '質問、検索、またはアクションを実行...' ,
83
85
send : '送信' ,
84
86
ai_chat_suggested_questions_title : 'おすすめの質問' ,
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ export const nl: TranslationLanguage = {
73
73
ai_chat_clear_conversation : 'Gesprek wissen' ,
74
74
ai_chat_thinking : 'Denkt na...' ,
75
75
ai_chat_working : 'Werkt...' ,
76
+ ai_chat_context_badge : 'AI' ,
76
77
ai_chat_context_title : 'Gebaseerd op je context' ,
77
78
ai_chat_context_description :
78
- 'De Docs Assistent gebruikt je context om antwoorden te genereren en acties uit te voeren.' ,
79
+ 'De Docs Assistent gebruikt AI en je context om antwoorden te genereren en acties uit te voeren.' ,
79
80
ai_chat_context_pages_youve_read : "Pagina's die je hebt gelezen" ,
80
81
ai_chat_context_info_provided_by_the_site : 'Informatie verstrekt door de site' ,
81
82
ai_chat_context_previous_messages : 'Vorige berichten' ,
83
+ ai_chat_context_disclaimer : 'AI-antwoorden kunnen fouten bevatten.' ,
82
84
ai_chat_input_placeholder : 'Vraag, zoek of voer een actie uit...' ,
83
85
send : 'Versturen' ,
84
86
ai_chat_suggested_questions_title : 'Voorgestelde vragen' ,
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ export const no: TranslationLanguage = {
73
73
ai_chat_clear_conversation : 'Tøm samtale' ,
74
74
ai_chat_thinking : 'Tenker...' ,
75
75
ai_chat_working : 'Arbeider...' ,
76
+ ai_chat_context_badge : 'AI' ,
76
77
ai_chat_context_title : 'Basert på din kontekst' ,
77
78
ai_chat_context_description :
78
- 'Docs-assistenten bruker din kontekst til å generere svar og utføre handlinger.' ,
79
+ 'Docs-assistenten bruker AI og din kontekst til å generere svar og utføre handlinger.' ,
79
80
ai_chat_context_pages_youve_read : 'Sider du har lest' ,
80
81
ai_chat_context_info_provided_by_the_site : 'Informasjon gitt av nettstedet' ,
81
82
ai_chat_context_previous_messages : 'Tidligere meldinger' ,
83
+ ai_chat_context_disclaimer : 'AI-svar kan inneholde feil.' ,
82
84
ai_chat_input_placeholder : 'Spør, søk eller utfør en handling...' ,
83
85
send : 'Send' ,
84
86
ai_chat_suggested_questions_title : 'Foreslåtte spørsmål' ,
Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ export const pt_br = {
73
73
ai_chat_clear_conversation : 'Limpar conversa' ,
74
74
ai_chat_thinking : 'Pensando...' ,
75
75
ai_chat_working : 'Trabalhando...' ,
76
+ ai_chat_context_badge : 'IA' ,
76
77
ai_chat_context_title : 'Baseado no seu contexto' ,
77
78
ai_chat_context_description :
78
- 'O Assistente de Docs usa seu contexto para gerar respostas e realizar ações.' ,
79
+ 'O Assistente de Docs usa IA e seu contexto para gerar respostas e realizar ações.' ,
79
80
ai_chat_context_pages_youve_read : 'Páginas que você leu' ,
80
81
ai_chat_context_info_provided_by_the_site : 'Informações fornecidas pelo site' ,
81
82
ai_chat_context_previous_messages : 'Mensagens anteriores' ,
83
+ ai_chat_context_disclaimer : 'Respostas de IA podem conter erros.' ,
82
84
ai_chat_input_placeholder : 'Pergunte, pesquise ou execute uma ação...' ,
83
85
send : 'Enviar' ,
84
86
ai_chat_suggested_questions_title : 'Perguntas sugeridas' ,
You can’t perform that action at this time.
0 commit comments