Perplexity 的 AI 結合 search engine,我在 Open WebUI 上使用起來的感覺比開啟搜尋引擎的其他 AI 好得多,單純 gpt-4 配合 Open WebUI 開啟網頁搜尋常常會出現 error。我還不確定是 Open WebUI 還是 search engine 的問題,目前至少用了 gogoduck 跟 google search engine 都會有 error。
Perplexity 要用 API 至少要有 pro 的訂閱(之前續約手機有送一年的使用 😝),而且也是要儲值才能使用。
Setup
- 社群上已經有人寫好 function [Perplexity Sonar API with citations](https://openwebui.com/f/yazon/perplexity_sonar_api_with_citations) 了,進到該 function > Get > Import(或者 export 後手動 import) > 輸入 Open WebUI 的 url 來 import 進自己的 Open WebUI > 儲存函式
- 在 Open WebUI 的管理員控制台 > 函式 > 點函式的齒輪設定函式
Perplexity Api Base Url:https://api.perplexity.ai
Perplexity Api Key:[你的 perplexity api key] - 設定完重新整理網頁,在 model 選單就可以看到 Perplexity 的 Sonar 系列 model 囉!🎉

本文同步發表於:https://www.cjwind.cc/setup-sonar-ai-in-open-webui/














