Skip to content

Added basic support for llama-3 model via Perplexity API#600

Open
merionum wants to merge 2 commits inton3d1117:mainfrom
merionum:feature/perplexity-api
Open

Added basic support for llama-3 model via Perplexity API#600
merionum wants to merge 2 commits inton3d1117:mainfrom
merionum:feature/perplexity-api

Conversation

@merionum
Copy link

@merionum merionum commented Jun 10, 2024

Hello, thanks for this great project!

I have checked a recent issue #598 and figured it should work using openai's async client. Looks like it is true, I checked it with Perplexity's API token and made a few modifications to route the request to the correct place.

Please let me know if you want this feature to be included and what other modifications need to be done before it can be merged.

A few quick notes:

  1. Current default generation parameters work really bad with llama-3, so sending nulls makes them default to something better on Perplexity's end

  2. Image generation \ description stop working out of the box as Perplexity's API doesn't support any image processing logic yet

@planecore
Copy link

Can you please add all the perplexity models?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants