Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[FEATURE] Perplexity and Groq LLM support

Open tiangao88 opened this issue 1 year ago • 6 comments

Please add support for two new LLM providers

  • Perplexity : https://docs.perplexity.ai/reference/post_chat_completions
  • Groq: https://console.groq.com/docs/quickstart

tiangao88 avatar Mar 03 '24 13:03 tiangao88

Groq PR

HenryHengZJ avatar Mar 05 '24 07:03 HenryHengZJ

Welcome any contribution to Perplexity!

HenryHengZJ avatar Mar 05 '24 07:03 HenryHengZJ

You can try Perplexity now with an OpenAI Custom module.

  1. Add a ChatOpenAI Custom Module.
  2. Setup the Credential with your Perplexity API Key.
  3. Enter a model, ex. 'sonar-medium-online', https://docs.perplexity.ai/docs/rate-limits
  4. Add Additional Parameters, basepath, https://api.perplexity.ai
  5. Requires a Frequency Penalty also, ex .9

Not all Agents/Chains that support OpenAI appear to work fully. But a simple LLM Chain is functional. screenshot example

njfio avatar Mar 07 '24 15:03 njfio

Also works (somewhat) with 1 May '24 new models: llama-3-sonar-large-32k-online & llama-3-sonar-small-32k-online

mikehudson2 avatar May 02 '24 09:05 mikehudson2

Is this issue open? Can i take it?

cooldude6000 avatar Jul 04 '24 03:07 cooldude6000

Is this issue open? Can i take it?

Did you take it? Can I take it? @cooldude6000 @HenryHengZJ

raffareis avatar Aug 23 '24 12:08 raffareis

I tried accomplishing this in flowise, but it doesn't work. Screenshot 2024-10-11 12 32 09

You can try Perplexity now with an OpenAI Custom module.

  1. Add a ChatOpenAI Custom Module.
  2. Setup the Credential with your Perplexity API Key.
  3. Enter a model, ex. 'sonar-medium-online', https://docs.perplexity.ai/docs/rate-limits
  4. Add Additional Parameters, basepath, https://api.perplexity.ai
  5. Requires a Frequency Penalty also, ex .9

Not all Agents/Chains that support OpenAI appear to work fully. But a simple LLM Chain is functional. screenshot example

I tried this in flowise as you can see in the screenshots, but it didn't work. Also, I cut and pasted the perplexity model from the page as shown in the second screenshot. I'm confused how using the ChatOpenAI Custom module can be used to store a perplexity api key? My last confusion from @njfio is 'Requires a Frequency Penalty also, ex .9'. How is this implemented? Screenshot 2024-10-11 12 37 57 Screenshot 2024-10-11 12 33 44 Screenshot 2024-10-11 12 32 09

mapachekurt avatar Oct 11 '24 11:10 mapachekurt

Is this issue still open, I would like to contribute to this one.

saransh-g1 avatar Oct 18 '24 17:10 saransh-g1