Skip to content

feat: add Perplexity as a provider#4395

Open
123mikeyd wants to merge 2 commits intoNousResearch:mainfrom
123mikeyd:feature/add-perplexity-provider
Open

feat: add Perplexity as a provider#4395
123mikeyd wants to merge 2 commits intoNousResearch:mainfrom
123mikeyd:feature/add-perplexity-provider

Conversation

@123mikeyd
Copy link
Copy Markdown
Contributor

Add Perplexity (Sonar API) as a first-class provider.\n\nPerplexity offers OpenAI-compatible chat completions with built-in web search grounding.\n\n## Changes\n- auth.py: ProviderConfig entry (api_key auth, https://api.perplexity.ai)\n- models.py: Model list (sonar, sonar-pro, sonar-reasoning-pro, sonar-deep-research), labels, aliases (pplx, sonar)\n- config.py: PERPLEXITY_API_KEY and PERPLEXITY_BASE_URL env var definitions\n- setup.py: Setup wizard provider choice and handler\n\n## Usage\n\nhermes setup # select Perplexity from provider list\nhermes -m perplexity:sonar-pro\nhermes -m pplx:sonar-reasoning-pro\n\n\nRequested by a community member in Discord. Perplexity uses standard OpenAI-compatible chat completions so no special adapter needed -- just key + base URL.

Major update to meme-generation skill:

- Path D: Veo/Gemini video memes (text-to-video, image-to-video)
  - Chained scenes for sequential narrative generation
  - Frame interpolation for transition effects
  - Video extension up to 148 seconds
- Path E: Kling AI video memes (image-to-video)
  - Camera control, motion brush, multi-shot storyboarding
  - Voice integration for dialogue
- Path F: Hedra lip-sync video (character singing/speaking)
  - Audio-driven lip sync from still images
  - Music video production workflow
  - Stylized art preservation tips
- Video post-processing section (ffmpeg)
  - Text burn-in, audio overlay, GIF conversion, concatenation
- Provider credential check table
- Video-specific pitfalls

Also includes all prior improvements:
- Path B: Custom Pillow composites (object labels, avatars, memorials)
- Path C: AI-generated art memes
- Nous Research team assets and branding
- Font preferences (Courier New / Liberation Mono Bold)

Co-authored-by: 123mikeyd
Add Perplexity (Sonar API) as a first-class provider. Perplexity offers
OpenAI-compatible chat completions with built-in web search grounding.

Changes:
- auth.py: Add ProviderConfig entry (api_key auth, https://api.perplexity.ai)
- models.py: Add model list (sonar, sonar-pro, sonar-reasoning-pro,
  sonar-deep-research), provider label, aliases (pplx, sonar), provider order
- config.py: Add PERPLEXITY_API_KEY and PERPLEXITY_BASE_URL env var
  definitions, update fallback provider comment templates
- setup.py: Add to setup wizard provider choices and default model list

Usage:
  hermes setup  # select Perplexity from provider list
  hermes -m perplexity:sonar-pro
  hermes -m pplx:sonar-reasoning-pro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant