go-perplexity
psyb0t/go-perplexity
Unofficial Go client for the Perplexity REST API at https://api.perplexity.ai. Package perplexity (github.com/psyb0t/go-perplexity), generated with oapi-codegen from Perplexity's OpenAPI document, has one typed method per endpoint on the client from perplexity.NewClientWithResponses, covering Sonar chat completions (sync and async), web search, embeddings and contextualized embeddings, agents and their files, skills, decisions, models and usage analytics, with JSON bodies decoded into Go structs. Auth is a bearer API key set through a request editor. Use when Go code needs to call the Perplexity API or already imports go-perplexity.
更新日志v0.7.1
No user-facing changes in version 0.7.1; no file changes were detected.
版本历史
一键安装
复制以下命令并粘贴到终端中运行
需要安装 OpenClaw CLI