Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
e98cb452
Unverified
Commit
e98cb452
authored
May 06, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 06, 2024
Browse files
Merge pull request #2011 from cheahjs/feat/rag-citations
feat: show RAG query results as citations
parents
ba09fcd5
c84e0aa2
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
82 additions
and
19 deletions
+82
-19
src/lib/i18n/locales/ka-GE/translation.json
src/lib/i18n/locales/ka-GE/translation.json
+4
-1
src/lib/i18n/locales/ko-KR/translation.json
src/lib/i18n/locales/ko-KR/translation.json
+4
-1
src/lib/i18n/locales/nl-NL/translation.json
src/lib/i18n/locales/nl-NL/translation.json
+4
-1
src/lib/i18n/locales/pl-PL/translation.json
src/lib/i18n/locales/pl-PL/translation.json
+4
-1
src/lib/i18n/locales/pt-BR/translation.json
src/lib/i18n/locales/pt-BR/translation.json
+4
-1
src/lib/i18n/locales/pt-PT/translation.json
src/lib/i18n/locales/pt-PT/translation.json
+4
-1
src/lib/i18n/locales/ru-RU/translation.json
src/lib/i18n/locales/ru-RU/translation.json
+4
-1
src/lib/i18n/locales/sv-SE/translation.json
src/lib/i18n/locales/sv-SE/translation.json
+4
-1
src/lib/i18n/locales/tr-TR/translation.json
src/lib/i18n/locales/tr-TR/translation.json
+4
-1
src/lib/i18n/locales/uk-UA/translation.json
src/lib/i18n/locales/uk-UA/translation.json
+4
-1
src/lib/i18n/locales/vi-VN/translation.json
src/lib/i18n/locales/vi-VN/translation.json
+4
-1
src/lib/i18n/locales/zh-CN/translation.json
src/lib/i18n/locales/zh-CN/translation.json
+4
-1
src/lib/i18n/locales/zh-TW/translation.json
src/lib/i18n/locales/zh-TW/translation.json
+4
-1
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+15
-3
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+15
-3
No files found.
src/lib/i18n/locales/ka-GE/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"გადახურვა ფრაგმენტულია"
,
"Chunk Overlap"
:
"გადახურვა ფრაგმენტულია"
,
"Chunk Params"
:
"გადახურვის პარამეტრები"
,
"Chunk Params"
:
"გადახურვის პარამეტრები"
,
"Chunk Size"
:
"გადახურვის ზომა"
,
"Chunk Size"
:
"გადახურვის ზომა"
,
"Citation"
:
""
,
"Click here for help."
:
"დახმარებისთვის, დააკლიკე აქ"
,
"Click here for help."
:
"დახმარებისთვის, დააკლიკე აქ"
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"სხვა მოდელური ფაილების სანახავად, დააკლიკე აქ"
,
"Click here to check other modelfiles."
:
"სხვა მოდელური ფაილების სანახავად, დააკლიკე აქ"
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"ახალი მიმოწერა"
,
"New Chat"
:
"ახალი მიმოწერა"
,
"New Password"
:
"ახალი პაროლი"
,
"New Password"
:
"ახალი პაროლი"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"არ იცი რა დაამატო?"
,
"Not sure what to add?"
:
"არ იცი რა დაამატო?"
,
"Not sure what to write? Switch to"
:
"არ იცი რა დაწერო? გადართვა:"
,
"Not sure what to write? Switch to"
:
"არ იცი რა დაწერო? გადართვა:"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"გასვლა"
,
"Sign Out"
:
"გასვლა"
,
"Sign up"
:
"რეგისტრაცია"
,
"Sign up"
:
"რეგისტრაცია"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"მეტყველების ამოცნობის შეცდომა: {{error}}"
,
"Speech recognition error: {{error}}"
:
"მეტყველების ამოცნობის შეცდომა: {{error}}"
,
"Speech-to-Text Engine"
:
"ხმოვან-ტექსტური ძრავი"
,
"Speech-to-Text Engine"
:
"ხმოვან-ტექსტური ძრავი"
,
"SpeechRecognition API is not supported in this browser."
:
"მეტყველების ამოცნობის API არ არის მხარდაჭერილი ამ ბრაუზერში."
,
"SpeechRecognition API is not supported in this browser."
:
"მეტყველების ამოცნობის API არ არის მხარდაჭერილი ამ ბრაუზერში."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"თქვენ სასარგებლო ასისტენტი ხართ."
,
"You're a helpful assistant."
:
"თქვენ სასარგებლო ასისტენტი ხართ."
,
"You're now logged in."
:
"თქვენ შესული ხართ."
,
"You're now logged in."
:
"თქვენ შესული ხართ."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/ko-KR/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Chunk Overlap"
,
"Chunk Overlap"
:
"Chunk Overlap"
,
"Chunk Params"
:
"Chunk Params"
,
"Chunk Params"
:
"Chunk Params"
,
"Chunk Size"
:
"Chunk Size"
,
"Chunk Size"
:
"Chunk Size"
,
"Citation"
:
""
,
"Click here for help."
:
"도움말을 보려면 여기를 클릭하세요."
,
"Click here for help."
:
"도움말을 보려면 여기를 클릭하세요."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"다른 모델파일을 확인하려면 여기를 클릭하세요."
,
"Click here to check other modelfiles."
:
"다른 모델파일을 확인하려면 여기를 클릭하세요."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"새 채팅"
,
"New Chat"
:
"새 채팅"
,
"New Password"
:
"새 비밀번호"
,
"New Password"
:
"새 비밀번호"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"추가할 것이 궁금하세요?"
,
"Not sure what to add?"
:
"추가할 것이 궁금하세요?"
,
"Not sure what to write? Switch to"
:
"무엇을 쓸지 모르겠나요? 전환하세요."
,
"Not sure what to write? Switch to"
:
"무엇을 쓸지 모르겠나요? 전환하세요."
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"로그아웃"
,
"Sign Out"
:
"로그아웃"
,
"Sign up"
:
"가입"
,
"Sign up"
:
"가입"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"음성 인식 오류: {{error}}"
,
"Speech recognition error: {{error}}"
:
"음성 인식 오류: {{error}}"
,
"Speech-to-Text Engine"
:
"음성-텍스트 엔진"
,
"Speech-to-Text Engine"
:
"음성-텍스트 엔진"
,
"SpeechRecognition API is not supported in this browser."
:
"이 브라우저에서는 SpeechRecognition API를 지원하지 않습니다."
,
"SpeechRecognition API is not supported in this browser."
:
"이 브라우저에서는 SpeechRecognition API를 지원하지 않습니다."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"당신은 유용한 어시스턴트입니다."
,
"You're a helpful assistant."
:
"당신은 유용한 어시스턴트입니다."
,
"You're now logged in."
:
"로그인되었습니다."
,
"You're now logged in."
:
"로그인되었습니다."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/nl-NL/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Chunk Overlap"
,
"Chunk Overlap"
:
"Chunk Overlap"
,
"Chunk Params"
:
"Chunk Params"
,
"Chunk Params"
:
"Chunk Params"
,
"Chunk Size"
:
"Chunk Grootte"
,
"Chunk Size"
:
"Chunk Grootte"
,
"Citation"
:
""
,
"Click here for help."
:
"Klik hier voor help."
,
"Click here for help."
:
"Klik hier voor help."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Klik hier om andere modelfiles te controleren."
,
"Click here to check other modelfiles."
:
"Klik hier om andere modelfiles te controleren."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Nieuwe Chat"
,
"New Chat"
:
"Nieuwe Chat"
,
"New Password"
:
"Nieuw Wachtwoord"
,
"New Password"
:
"Nieuw Wachtwoord"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Niet zeker wat toe te voegen?"
,
"Not sure what to add?"
:
"Niet zeker wat toe te voegen?"
,
"Not sure what to write? Switch to"
:
"Niet zeker wat te schrijven? Schakel over naar"
,
"Not sure what to write? Switch to"
:
"Niet zeker wat te schrijven? Schakel over naar"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Uitloggen"
,
"Sign Out"
:
"Uitloggen"
,
"Sign up"
:
"Registreren"
,
"Sign up"
:
"Registreren"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Spraakherkenning fout: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Spraakherkenning fout: {{error}}"
,
"Speech-to-Text Engine"
:
"Spraak-naar-tekst Engine"
,
"Speech-to-Text Engine"
:
"Spraak-naar-tekst Engine"
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API wordt niet ondersteund in deze browser."
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API wordt niet ondersteund in deze browser."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Jij bent een behulpzame assistent."
,
"You're a helpful assistant."
:
"Jij bent een behulpzame assistent."
,
"You're now logged in."
:
"Je bent nu ingelogd."
,
"You're now logged in."
:
"Je bent nu ingelogd."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/pl-PL/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Zachodzenie bloku"
,
"Chunk Overlap"
:
"Zachodzenie bloku"
,
"Chunk Params"
:
"Parametry bloku"
,
"Chunk Params"
:
"Parametry bloku"
,
"Chunk Size"
:
"Rozmiar bloku"
,
"Chunk Size"
:
"Rozmiar bloku"
,
"Citation"
:
""
,
"Click here for help."
:
"Kliknij tutaj, aby uzyskać pomoc."
,
"Click here for help."
:
"Kliknij tutaj, aby uzyskać pomoc."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Kliknij tutaj, aby sprawdzić inne pliki modelowe."
,
"Click here to check other modelfiles."
:
"Kliknij tutaj, aby sprawdzić inne pliki modelowe."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Nowy czat"
,
"New Chat"
:
"Nowy czat"
,
"New Password"
:
"Nowe hasło"
,
"New Password"
:
"Nowe hasło"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Nie wiesz, co dodać?"
,
"Not sure what to add?"
:
"Nie wiesz, co dodać?"
,
"Not sure what to write? Switch to"
:
"Nie wiesz, co napisać? Przełącz się na"
,
"Not sure what to write? Switch to"
:
"Nie wiesz, co napisać? Przełącz się na"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Wyloguj się"
,
"Sign Out"
:
"Wyloguj się"
,
"Sign up"
:
"Zarejestruj się"
,
"Sign up"
:
"Zarejestruj się"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Błąd rozpoznawania mowy: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Błąd rozpoznawania mowy: {{error}}"
,
"Speech-to-Text Engine"
:
"Silnik mowy na tekst"
,
"Speech-to-Text Engine"
:
"Silnik mowy na tekst"
,
"SpeechRecognition API is not supported in this browser."
:
"API Rozpoznawania Mowy nie jest obsługiwane w tej przeglądarce."
,
"SpeechRecognition API is not supported in this browser."
:
"API Rozpoznawania Mowy nie jest obsługiwane w tej przeglądarce."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Jesteś pomocnym asystentem."
,
"You're a helpful assistant."
:
"Jesteś pomocnym asystentem."
,
"You're now logged in."
:
"Jesteś teraz zalogowany."
,
"You're now logged in."
:
"Jesteś teraz zalogowany."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/pt-BR/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Sobreposição de Fragmento"
,
"Chunk Overlap"
:
"Sobreposição de Fragmento"
,
"Chunk Params"
:
"Parâmetros de Fragmento"
,
"Chunk Params"
:
"Parâmetros de Fragmento"
,
"Chunk Size"
:
"Tamanho do Fragmento"
,
"Chunk Size"
:
"Tamanho do Fragmento"
,
"Citation"
:
""
,
"Click here for help."
:
"Clique aqui para obter ajuda."
,
"Click here for help."
:
"Clique aqui para obter ajuda."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Clique aqui para verificar outros arquivos de modelo."
,
"Click here to check other modelfiles."
:
"Clique aqui para verificar outros arquivos de modelo."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Novo Bate-papo"
,
"New Chat"
:
"Novo Bate-papo"
,
"New Password"
:
"Nova Senha"
,
"New Password"
:
"Nova Senha"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Não tem certeza do que adicionar?"
,
"Not sure what to add?"
:
"Não tem certeza do que adicionar?"
,
"Not sure what to write? Switch to"
:
"Não tem certeza do que escrever? Mude para"
,
"Not sure what to write? Switch to"
:
"Não tem certeza do que escrever? Mude para"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Sair"
,
"Sign Out"
:
"Sair"
,
"Sign up"
:
"Inscrever-se"
,
"Sign up"
:
"Inscrever-se"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Erro de reconhecimento de fala: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Erro de reconhecimento de fala: {{error}}"
,
"Speech-to-Text Engine"
:
"Mecanismo de Fala para Texto"
,
"Speech-to-Text Engine"
:
"Mecanismo de Fala para Texto"
,
"SpeechRecognition API is not supported in this browser."
:
"A API SpeechRecognition não é suportada neste navegador."
,
"SpeechRecognition API is not supported in this browser."
:
"A API SpeechRecognition não é suportada neste navegador."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Você é um assistente útil."
,
"You're a helpful assistant."
:
"Você é um assistente útil."
,
"You're now logged in."
:
"Você está conectado agora."
,
"You're now logged in."
:
"Você está conectado agora."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/pt-PT/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Sobreposição de Fragmento"
,
"Chunk Overlap"
:
"Sobreposição de Fragmento"
,
"Chunk Params"
:
"Parâmetros de Fragmento"
,
"Chunk Params"
:
"Parâmetros de Fragmento"
,
"Chunk Size"
:
"Tamanho do Fragmento"
,
"Chunk Size"
:
"Tamanho do Fragmento"
,
"Citation"
:
""
,
"Click here for help."
:
"Clique aqui para obter ajuda."
,
"Click here for help."
:
"Clique aqui para obter ajuda."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Clique aqui para verificar outros arquivos de modelo."
,
"Click here to check other modelfiles."
:
"Clique aqui para verificar outros arquivos de modelo."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Novo Bate-papo"
,
"New Chat"
:
"Novo Bate-papo"
,
"New Password"
:
"Nova Senha"
,
"New Password"
:
"Nova Senha"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Não tem certeza do que adicionar?"
,
"Not sure what to add?"
:
"Não tem certeza do que adicionar?"
,
"Not sure what to write? Switch to"
:
"Não tem certeza do que escrever? Mude para"
,
"Not sure what to write? Switch to"
:
"Não tem certeza do que escrever? Mude para"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Sair"
,
"Sign Out"
:
"Sair"
,
"Sign up"
:
"Inscrever-se"
,
"Sign up"
:
"Inscrever-se"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Erro de reconhecimento de fala: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Erro de reconhecimento de fala: {{error}}"
,
"Speech-to-Text Engine"
:
"Mecanismo de Fala para Texto"
,
"Speech-to-Text Engine"
:
"Mecanismo de Fala para Texto"
,
"SpeechRecognition API is not supported in this browser."
:
"A API SpeechRecognition não é suportada neste navegador."
,
"SpeechRecognition API is not supported in this browser."
:
"A API SpeechRecognition não é suportada neste navegador."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Você é um assistente útil."
,
"You're a helpful assistant."
:
"Você é um assistente útil."
,
"You're now logged in."
:
"Você está conectado agora."
,
"You're now logged in."
:
"Você está conectado agora."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/ru-RU/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Перекрытие фрагментов"
,
"Chunk Overlap"
:
"Перекрытие фрагментов"
,
"Chunk Params"
:
"Параметры фрагментов"
,
"Chunk Params"
:
"Параметры фрагментов"
,
"Chunk Size"
:
"Размер фрагмента"
,
"Chunk Size"
:
"Размер фрагмента"
,
"Citation"
:
""
,
"Click here for help."
:
"Нажмите здесь для помощь."
,
"Click here for help."
:
"Нажмите здесь для помощь."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Нажмите тут чтобы проверить другие файлы моделей."
,
"Click here to check other modelfiles."
:
"Нажмите тут чтобы проверить другие файлы моделей."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Новый чат"
,
"New Chat"
:
"Новый чат"
,
"New Password"
:
"Новый пароль"
,
"New Password"
:
"Новый пароль"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Не уверены, что добавить?"
,
"Not sure what to add?"
:
"Не уверены, что добавить?"
,
"Not sure what to write? Switch to"
:
"Не уверены, что написать? Переключитесь на"
,
"Not sure what to write? Switch to"
:
"Не уверены, что написать? Переключитесь на"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Выход"
,
"Sign Out"
:
"Выход"
,
"Sign up"
:
"зарегистрировать"
,
"Sign up"
:
"зарегистрировать"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Ошибка распознавания речи: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Ошибка распознавания речи: {{error}}"
,
"Speech-to-Text Engine"
:
"Система распознавания речи"
,
"Speech-to-Text Engine"
:
"Система распознавания речи"
,
"SpeechRecognition API is not supported in this browser."
:
"API распознавания речи не поддерживается в этом браузере."
,
"SpeechRecognition API is not supported in this browser."
:
"API распознавания речи не поддерживается в этом браузере."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Вы полезный ассистент."
,
"You're a helpful assistant."
:
"Вы полезный ассистент."
,
"You're now logged in."
:
"Вы вошли в систему."
,
"You're now logged in."
:
"Вы вошли в систему."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/sv-SE/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Överlappning"
,
"Chunk Overlap"
:
"Överlappning"
,
"Chunk Params"
:
"Chunk-parametrar"
,
"Chunk Params"
:
"Chunk-parametrar"
,
"Chunk Size"
:
"Chunk-storlek"
,
"Chunk Size"
:
"Chunk-storlek"
,
"Citation"
:
""
,
"Click here for help."
:
"Klicka här för hjälp."
,
"Click here for help."
:
"Klicka här för hjälp."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Klicka här för att kontrollera andra modelfiler."
,
"Click here to check other modelfiles."
:
"Klicka här för att kontrollera andra modelfiler."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Ny chatt"
,
"New Chat"
:
"Ny chatt"
,
"New Password"
:
"Nytt lösenord"
,
"New Password"
:
"Nytt lösenord"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Inte säker på vad du ska lägga till?"
,
"Not sure what to add?"
:
"Inte säker på vad du ska lägga till?"
,
"Not sure what to write? Switch to"
:
"Inte säker på vad du ska skriva? Växla till"
,
"Not sure what to write? Switch to"
:
"Inte säker på vad du ska skriva? Växla till"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Logga ut"
,
"Sign Out"
:
"Logga ut"
,
"Sign up"
:
"Registrera dig"
,
"Sign up"
:
"Registrera dig"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Fel vid taligenkänning: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Fel vid taligenkänning: {{error}}"
,
"Speech-to-Text Engine"
:
"Tal-till-text-motor"
,
"Speech-to-Text Engine"
:
"Tal-till-text-motor"
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API stöds inte i denna webbläsare."
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API stöds inte i denna webbläsare."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Du är en hjälpsam assistent."
,
"You're a helpful assistant."
:
"Du är en hjälpsam assistent."
,
"You're now logged in."
:
"Du är nu inloggad."
,
"You're now logged in."
:
"Du är nu inloggad."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/tr-TR/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Chunk Çakışması"
,
"Chunk Overlap"
:
"Chunk Çakışması"
,
"Chunk Params"
:
"Chunk Parametreleri"
,
"Chunk Params"
:
"Chunk Parametreleri"
,
"Chunk Size"
:
"Chunk Boyutu"
,
"Chunk Size"
:
"Chunk Boyutu"
,
"Citation"
:
""
,
"Click here for help."
:
"Yardım için buraya tıklayın."
,
"Click here for help."
:
"Yardım için buraya tıklayın."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Diğer model dosyalarını kontrol etmek için buraya tıklayın."
,
"Click here to check other modelfiles."
:
"Diğer model dosyalarını kontrol etmek için buraya tıklayın."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Yeni Sohbet"
,
"New Chat"
:
"Yeni Sohbet"
,
"New Password"
:
"Yeni Parola"
,
"New Password"
:
"Yeni Parola"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
"Gerçeklere göre doğru değil"
,
"Not factually correct"
:
"Gerçeklere göre doğru değil"
,
"Not sure what to add?"
:
"Ne ekleyeceğinizden emin değil misiniz?"
,
"Not sure what to add?"
:
"Ne ekleyeceğinizden emin değil misiniz?"
,
"Not sure what to write? Switch to"
:
"Ne yazacağınızdan emin değil misiniz? Şuraya geçin"
,
"Not sure what to write? Switch to"
:
"Ne yazacağınızdan emin değil misiniz? Şuraya geçin"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Çıkış Yap"
,
"Sign Out"
:
"Çıkış Yap"
,
"Sign up"
:
"Kaydol"
,
"Sign up"
:
"Kaydol"
,
"Signing in"
:
"Oturum açma"
,
"Signing in"
:
"Oturum açma"
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Konuşma tanıma hatası: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Konuşma tanıma hatası: {{error}}"
,
"Speech-to-Text Engine"
:
"Konuşmadan Metne Motoru"
,
"Speech-to-Text Engine"
:
"Konuşmadan Metne Motoru"
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API bu tarayıcıda desteklenmiyor."
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API bu tarayıcıda desteklenmiyor."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Sen yardımcı bir asistansın."
,
"You're a helpful assistant."
:
"Sen yardımcı bir asistansın."
,
"You're now logged in."
:
"Şimdi oturum açtınız."
,
"You're now logged in."
:
"Şimdi oturum açtınız."
,
"Youtube"
:
"Youtube"
"Youtube"
:
"Youtube"
}
}
\ No newline at end of file
src/lib/i18n/locales/uk-UA/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Перекриття фрагментів"
,
"Chunk Overlap"
:
"Перекриття фрагментів"
,
"Chunk Params"
:
"Параметри фрагментів"
,
"Chunk Params"
:
"Параметри фрагментів"
,
"Chunk Size"
:
"Розмір фрагменту"
,
"Chunk Size"
:
"Розмір фрагменту"
,
"Citation"
:
""
,
"Click here for help."
:
"Клацніть тут, щоб отримати допомогу."
,
"Click here for help."
:
"Клацніть тут, щоб отримати допомогу."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Клацніть тут, щоб перевірити інші файли моделей."
,
"Click here to check other modelfiles."
:
"Клацніть тут, щоб перевірити інші файли моделей."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Новий чат"
,
"New Chat"
:
"Новий чат"
,
"New Password"
:
"Новий пароль"
,
"New Password"
:
"Новий пароль"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"Не впевнений, що додати?"
,
"Not sure what to add?"
:
"Не впевнений, що додати?"
,
"Not sure what to write? Switch to"
:
"Не впевнений, що писати? Переключитися на"
,
"Not sure what to write? Switch to"
:
"Не впевнений, що писати? Переключитися на"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Вийти"
,
"Sign Out"
:
"Вийти"
,
"Sign up"
:
"Зареєструватися"
,
"Sign up"
:
"Зареєструватися"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Помилка розпізнавання мови: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Помилка розпізнавання мови: {{error}}"
,
"Speech-to-Text Engine"
:
"Система розпізнавання мови"
,
"Speech-to-Text Engine"
:
"Система розпізнавання мови"
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API не підтримується в цьому браузері."
,
"SpeechRecognition API is not supported in this browser."
:
"SpeechRecognition API не підтримується в цьому браузері."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Ви корисний асистент."
,
"You're a helpful assistant."
:
"Ви корисний асистент."
,
"You're now logged in."
:
"Ви увійшли в систему."
,
"You're now logged in."
:
"Ви увійшли в систему."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/vi-VN/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Chồng lấn (overlap)"
,
"Chunk Overlap"
:
"Chồng lấn (overlap)"
,
"Chunk Params"
:
"Cài đặt số lượng ký tự cho khối ký tự (chunk)"
,
"Chunk Params"
:
"Cài đặt số lượng ký tự cho khối ký tự (chunk)"
,
"Chunk Size"
:
"Kích thước khối (size)"
,
"Chunk Size"
:
"Kích thước khối (size)"
,
"Citation"
:
""
,
"Click here for help."
:
"Bấm vào đây để được trợ giúp."
,
"Click here for help."
:
"Bấm vào đây để được trợ giúp."
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"Bấm vào đây để kiểm tra các tệp mô tả mô hình (modelfiles) khác."
,
"Click here to check other modelfiles."
:
"Bấm vào đây để kiểm tra các tệp mô tả mô hình (modelfiles) khác."
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"Tạo cuộc trò chuyện mới"
,
"New Chat"
:
"Tạo cuộc trò chuyện mới"
,
"New Password"
:
"Mật khẩu mới"
,
"New Password"
:
"Mật khẩu mới"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
"Không chính xác so với thực tế"
,
"Not factually correct"
:
"Không chính xác so với thực tế"
,
"Not sure what to add?"
:
"Không chắc phải thêm gì?"
,
"Not sure what to add?"
:
"Không chắc phải thêm gì?"
,
"Not sure what to write? Switch to"
:
"Không chắc phải viết gì? Chuyển sang"
,
"Not sure what to write? Switch to"
:
"Không chắc phải viết gì? Chuyển sang"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"Đăng xuất"
,
"Sign Out"
:
"Đăng xuất"
,
"Sign up"
:
"Đăng ký"
,
"Sign up"
:
"Đăng ký"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"Lỗi nhận dạng giọng nói: {{error}}"
,
"Speech recognition error: {{error}}"
:
"Lỗi nhận dạng giọng nói: {{error}}"
,
"Speech-to-Text Engine"
:
"Công cụ Nhận dạng Giọng nói"
,
"Speech-to-Text Engine"
:
"Công cụ Nhận dạng Giọng nói"
,
"SpeechRecognition API is not supported in this browser."
:
"Trình duyệt này không hỗ trợ API Nhận dạng Giọng nói."
,
"SpeechRecognition API is not supported in this browser."
:
"Trình duyệt này không hỗ trợ API Nhận dạng Giọng nói."
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"Bạn là một trợ lý hữu ích."
,
"You're a helpful assistant."
:
"Bạn là một trợ lý hữu ích."
,
"You're now logged in."
:
"Bạn đã đăng nhập."
,
"You're now logged in."
:
"Bạn đã đăng nhập."
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/zh-CN/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"块重叠(Chunk Overlap)"
,
"Chunk Overlap"
:
"块重叠(Chunk Overlap)"
,
"Chunk Params"
:
"块参数(Chunk Params)"
,
"Chunk Params"
:
"块参数(Chunk Params)"
,
"Chunk Size"
:
"块大小(Chunk Size)"
,
"Chunk Size"
:
"块大小(Chunk Size)"
,
"Citation"
:
""
,
"Click here for help."
:
"点击这里获取帮助。"
,
"Click here for help."
:
"点击这里获取帮助。"
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"点击这里检查其他模型文件。"
,
"Click here to check other modelfiles."
:
"点击这里检查其他模型文件。"
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"新聊天"
,
"New Chat"
:
"新聊天"
,
"New Password"
:
"新密码"
,
"New Password"
:
"新密码"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"不确定要添加什么?"
,
"Not sure what to add?"
:
"不确定要添加什么?"
,
"Not sure what to write? Switch to"
:
"不确定写什么?切换到"
,
"Not sure what to write? Switch to"
:
"不确定写什么?切换到"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"登出"
,
"Sign Out"
:
"登出"
,
"Sign up"
:
"注册"
,
"Sign up"
:
"注册"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"语音识别错误:{{error}}"
,
"Speech recognition error: {{error}}"
:
"语音识别错误:{{error}}"
,
"Speech-to-Text Engine"
:
"语音转文字引擎"
,
"Speech-to-Text Engine"
:
"语音转文字引擎"
,
"SpeechRecognition API is not supported in this browser."
:
"此浏览器不支持SpeechRecognition API。"
,
"SpeechRecognition API is not supported in this browser."
:
"此浏览器不支持SpeechRecognition API。"
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"你是一个有帮助的助手。"
,
"You're a helpful assistant."
:
"你是一个有帮助的助手。"
,
"You're now logged in."
:
"已登录。"
,
"You're now logged in."
:
"已登录。"
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/lib/i18n/locales/zh-TW/translation.json
View file @
e98cb452
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
"Chunk Overlap"
:
"Chunk Overlap"
,
"Chunk Overlap"
:
"Chunk Overlap"
,
"Chunk Params"
:
"Chunk 參數"
,
"Chunk Params"
:
"Chunk 參數"
,
"Chunk Size"
:
"Chunk 大小"
,
"Chunk Size"
:
"Chunk 大小"
,
"Citation"
:
""
,
"Click here for help."
:
"點擊這裡尋找幫助。"
,
"Click here for help."
:
"點擊這裡尋找幫助。"
,
"Click here to"
:
""
,
"Click here to"
:
""
,
"Click here to check other modelfiles."
:
"點擊這裡檢查其他 Modelfiles。"
,
"Click here to check other modelfiles."
:
"點擊這裡檢查其他 Modelfiles。"
,
...
@@ -270,6 +271,7 @@
...
@@ -270,6 +271,7 @@
"New Chat"
:
"新增聊天"
,
"New Chat"
:
"新增聊天"
,
"New Password"
:
"新密碼"
,
"New Password"
:
"新密碼"
,
"No results found"
:
""
,
"No results found"
:
""
,
"No source available"
:
""
,
"Not factually correct"
:
""
,
"Not factually correct"
:
""
,
"Not sure what to add?"
:
"不確定要新增什麼嗎?"
,
"Not sure what to add?"
:
"不確定要新增什麼嗎?"
,
"Not sure what to write? Switch to"
:
"不確定要寫什麼?切換到"
,
"Not sure what to write? Switch to"
:
"不確定要寫什麼?切換到"
,
...
@@ -385,6 +387,7 @@
...
@@ -385,6 +387,7 @@
"Sign Out"
:
"登出"
,
"Sign Out"
:
"登出"
,
"Sign up"
:
"註冊"
,
"Sign up"
:
"註冊"
,
"Signing in"
:
""
,
"Signing in"
:
""
,
"Source"
:
""
,
"Speech recognition error: {{error}}"
:
"語音識別錯誤: {{error}}"
,
"Speech recognition error: {{error}}"
:
"語音識別錯誤: {{error}}"
,
"Speech-to-Text Engine"
:
"語音轉文字引擎"
,
"Speech-to-Text Engine"
:
"語音轉文字引擎"
,
"SpeechRecognition API is not supported in this browser."
:
"此瀏覽器不支持 SpeechRecognition API。"
,
"SpeechRecognition API is not supported in this browser."
:
"此瀏覽器不支持 SpeechRecognition API。"
,
...
@@ -463,4 +466,4 @@
...
@@ -463,4 +466,4 @@
"You're a helpful assistant."
:
"你是一位善於協助他人的助手。"
,
"You're a helpful assistant."
:
"你是一位善於協助他人的助手。"
,
"You're now logged in."
:
"已登入。"
,
"You're now logged in."
:
"已登入。"
,
"Youtube"
:
""
"Youtube"
:
""
}
}
\ No newline at end of file
src/routes/(app)/+page.svelte
View file @
e98cb452
...
@@ -366,7 +366,8 @@
...
@@ -366,7 +366,8 @@
},
},
format: $settings.requestFormat ?? undefined,
format: $settings.requestFormat ?? undefined,
keep_alive: $settings.keepAlive ?? undefined,
keep_alive: $settings.keepAlive ?? undefined,
docs: docs.length > 0 ? docs : undefined
docs: docs.length > 0 ? docs : undefined,
citations: docs.length > 0
});
});
if (res && res.ok) {
if (res && res.ok) {
...
@@ -401,6 +402,11 @@
...
@@ -401,6 +402,11 @@
console.log(line);
console.log(line);
let data = JSON.parse(line);
let data = JSON.parse(line);
if ('citations' in data) {
responseMessage.citations = data.citations;
continue;
}
if ('detail' in data) {
if ('detail' in data) {
throw data;
throw data;
}
}
...
@@ -598,7 +604,8 @@
...
@@ -598,7 +604,8 @@
num_ctx: $settings?.options?.num_ctx ?? undefined,
num_ctx: $settings?.options?.num_ctx ?? undefined,
frequency_penalty: $settings?.options?.repeat_penalty ?? undefined,
frequency_penalty: $settings?.options?.repeat_penalty ?? undefined,
max_tokens: $settings?.options?.num_predict ?? undefined,
max_tokens: $settings?.options?.num_predict ?? undefined,
docs: docs.length > 0 ? docs : undefined
docs: docs.length > 0 ? docs : undefined,
citations: docs.length > 0
},
},
model?.source?.toLowerCase() === '
litellm
'
model?.source?.toLowerCase() === '
litellm
'
? `${LITELLM_API_BASE_URL}/v1`
? `${LITELLM_API_BASE_URL}/v1`
...
@@ -614,7 +621,7 @@
...
@@ -614,7 +621,7 @@
const textStream = await createOpenAITextStream(res.body, $settings.splitLargeChunks);
const textStream = await createOpenAITextStream(res.body, $settings.splitLargeChunks);
for await (const update of textStream) {
for await (const update of textStream) {
const { value, done } = update;
const { value, done
, citations
} = update;
if (done || stopResponseFlag || _chatId !== $chatId) {
if (done || stopResponseFlag || _chatId !== $chatId) {
responseMessage.done = true;
responseMessage.done = true;
messages = messages;
messages = messages;
...
@@ -626,6 +633,11 @@
...
@@ -626,6 +633,11 @@
break;
break;
}
}
if (citations) {
responseMessage.citations = citations;
continue;
}
if (responseMessage.content == '' && value == '
\
n
') {
if (responseMessage.content == '' && value == '
\
n
') {
continue;
continue;
} else {
} else {
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
e98cb452
...
@@ -378,7 +378,8 @@
...
@@ -378,7 +378,8 @@
},
},
format: $settings.requestFormat ?? undefined,
format: $settings.requestFormat ?? undefined,
keep_alive: $settings.keepAlive ?? undefined,
keep_alive: $settings.keepAlive ?? undefined,
docs: docs.length > 0 ? docs : undefined
docs: docs.length > 0 ? docs : undefined,
citations: docs.length > 0
});
});
if (res && res.ok) {
if (res && res.ok) {
...
@@ -413,6 +414,11 @@
...
@@ -413,6 +414,11 @@
console.log(line);
console.log(line);
let data = JSON.parse(line);
let data = JSON.parse(line);
if ('citations' in data) {
responseMessage.citations = data.citations;
continue;
}
if ('detail' in data) {
if ('detail' in data) {
throw data;
throw data;
}
}
...
@@ -610,7 +616,8 @@
...
@@ -610,7 +616,8 @@
num_ctx: $settings?.options?.num_ctx ?? undefined,
num_ctx: $settings?.options?.num_ctx ?? undefined,
frequency_penalty: $settings?.options?.repeat_penalty ?? undefined,
frequency_penalty: $settings?.options?.repeat_penalty ?? undefined,
max_tokens: $settings?.options?.num_predict ?? undefined,
max_tokens: $settings?.options?.num_predict ?? undefined,
docs: docs.length > 0 ? docs : undefined
docs: docs.length > 0 ? docs : undefined,
citations: docs.length > 0
},
},
model?.source?.toLowerCase() === '
litellm
'
model?.source?.toLowerCase() === '
litellm
'
? `${LITELLM_API_BASE_URL}/v1`
? `${LITELLM_API_BASE_URL}/v1`
...
@@ -626,7 +633,7 @@
...
@@ -626,7 +633,7 @@
const textStream = await createOpenAITextStream(res.body, $settings.splitLargeChunks);
const textStream = await createOpenAITextStream(res.body, $settings.splitLargeChunks);
for await (const update of textStream) {
for await (const update of textStream) {
const { value, done } = update;
const { value, done
, citations
} = update;
if (done || stopResponseFlag || _chatId !== $chatId) {
if (done || stopResponseFlag || _chatId !== $chatId) {
responseMessage.done = true;
responseMessage.done = true;
messages = messages;
messages = messages;
...
@@ -638,6 +645,11 @@
...
@@ -638,6 +645,11 @@
break;
break;
}
}
if (citations) {
responseMessage.citations = citations;
continue;
}
if (responseMessage.content == '' && value == '
\
n
') {
if (responseMessage.content == '' && value == '
\
n
') {
continue;
continue;
} else {
} else {
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment