genson1808/dsh-web-search-perplexity-account ↗★ 0

dsh-web-search-perplexity

Perplexity网页搜索服务商接入插件 适合需要利用Perplexity进行联网搜索和实时信息检索的用户。

包名
dsh-web-search-perplexity
兼容性
待验证
Harness 依赖范围
>=0.1
Cordis 依赖范围
>=4
版本
0.1.0
许可证
MIT
最近更新
2026年9月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:genson1808/dsh-web-search-perplexity-account

Configuration

Mounting is automatic; selecting it as the active provider and tuning it happen in the profile's cordis.patch.yml:

- id: web
  config:
    searchProvider: perplexity-account
- id:    # shown in Settings → Plugins → Plugin list
  config:
    sessionToken: !!js process.env.PERPLEXITY_SESSION_TOKEN  # or leave unset and sign in via the authorization UI
    model: experimental          # consumer model_preference; default 'experimental'
    searchRecency: week          # optional: hour|day|week|month|year
    timeoutMs: 60000             # optional
FieldDefaultMeaning
cookies$PERPLEXITY_COOKIESRaw Cookie header from a logged-in perplexity.ai session (highest precedence)
sessionToken$PERPLEXITY_SESSION_TOKENValue of __Secure-next-auth.session-token; falls back to the credential record
apiKey$PERPLEXITY_API_KEYBilled Sonar API key; falls back to the api-key credential record
openRouterKey$OPENROUTER_API_KEYOpenRouter key — routes perplexity/
modelexperimentalConsumer model_preference (Sonar on paid plans)
apiModelsonar-proAPI-mode model
apiMaxTokens8192API-mode max_tokens
apiTemperature0.2API-mode sampling temperature
numSearchResults20API-mode num_search_results
useResponsesApi$PERPLEXITY_RESPONSES=1API-mode transport: Responses API SSE instead of chat/completions
searchRecency(unset)search_recency_filter: hour, day, week, month, year
timeoutMs60000Hard per-request timeout

To sign in interactively, run the harness's login/authorization UI and pick Perplexity (account session) — browser SSO is the default method — or Perplexity (API key) to store a Sonar API key. In the web interface, the plugin appears as Enabled under Settings → Plugins → Plugin list → Global plugins; no card is rendered under Plugin configuration (which requires a client-side browser bundle), so tuning parameters are configured exclusively via the profile patch (cordis.patch.yml) or environment variables.