n8n-1 | Origin header is missing n8n-1 | ResponseError: Invalid origin! n8n-1 | at Push.handleRequest (/usr/local/lib/node_modules/n8n/src/push/index.ts:143:10) n8n-1 | at /usr/local/lib/node_modules/n8n/src/push/index.ts:100:10 n8n-1 | at Layer.handleRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/lib/layer.js:152:17) n8n-1 | at trimPrefix (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:342:13) n8n-1 | at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:297:9 n8n-1 | at processParams (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:582:12) n8n-1 | at next (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:291:5) n8n-1 | at /usr/local/lib/node_modules/n8n/src/auth/auth.service.ts:110:18 n8n-1 | at processTicksAndRejections (node:internal/process/task_queues:105:5)
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 了,進到該 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 囉~
昨天介紹了 ECS Cluster Auto Scaling,今天來看看 ECS service 的 auto scaling。(本日程式碼)
ECS cluster auto scaling 透過 auto scaling group 控制 container instance 的數量來滿足 task 的需求。ECS 會把 CPU 跟 Memory 使用資訊傳給 Cloudwatch,ECS service auto scaling 則是利用這些 loading 資訊自動增減 task 數量,loading 高便增加 task 數量來提供服務,loading 低則減少 task 以節省資源。ECS 是使用 Application Auto Scaling 的功能來做 service 的 auto scaling。
今天的主題是幫我們的 Laravel web service 加上 CDN(Content Delivery Network 或 Content Distribution Network),讓使用者可以更快取得取得服務。AWS 的 CDN 服務是 Cloudfront,是個 global 層級的服務。