mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-06-22 01:38:47 +00:00
Compare commits
5 Commits
29cbfb2c1f
...
2d076373d8
Author | SHA1 | Date | |
---|---|---|---|
2d076373d8 | |||
4d24d73161 | |||
5f0b87f4a9 | |||
728919f7bf | |||
68048dfd56 |
@ -44,7 +44,7 @@ Want to know more about its architecture and how it works? You can read it [here
|
||||
- **Normal Mode:** Processes your query and performs a web search.
|
||||
- **Focus Modes:** Special modes to better answer specific types of questions. Perplexica currently has 6 focus modes:
|
||||
- **All Mode:** Searches the entire web to find the best results.
|
||||
- **Writing Assistant Mode:** Helpful for writing tasks that does not require searching the web.
|
||||
- **Writing Assistant Mode:** Helpful for writing tasks that do not require searching the web.
|
||||
- **Academic Search Mode:** Finds articles and papers, ideal for academic research.
|
||||
- **YouTube Search Mode:** Finds YouTube videos based on the search query.
|
||||
- **Wolfram Alpha Search Mode:** Answers queries that need calculations or data analysis using Wolfram Alpha.
|
||||
|
@ -377,11 +377,16 @@ const ChatWindow = ({ id }: { id?: string }) => {
|
||||
const [isReady, setIsReady] = useState(false);
|
||||
|
||||
const [isWSReady, setIsWSReady] = useState(false);
|
||||
const ws = useSocket(
|
||||
process.env.NEXT_PUBLIC_WS_URL!,
|
||||
setIsWSReady,
|
||||
setHasError,
|
||||
);
|
||||
|
||||
let websocketUrl = process.env.NEXT_PUBLIC_WS_URL!;
|
||||
if (websocketUrl.startsWith('/')) {
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
const host = window.location.host;
|
||||
const path = websocketUrl;
|
||||
websocketUrl = `${protocol}${host}${path}`;
|
||||
}
|
||||
|
||||
const ws = useSocket(websocketUrl, setIsWSReady, setHasError);
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [messageAppeared, setMessageAppeared] = useState(false);
|
||||
|
Reference in New Issue
Block a user