opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Feature]: Perplexity Support

Open km-tr opened this issue 1 year ago • 7 comments
trafficstars

Description

I thought there might be demand for Perplexity since it is cheaper than the ChatGPT-4 model.

Suggested Solution

I believe adding support for it would be beneficial, following the same approach we took when we added compatibility for ollama.

  • #269

While there don't seem to be dedicated TypeScript libraries for this, the information here could provide a useful reference for our implementation.

  • https://github.com/callstack/ai-cli/blob/main/src/engine/providers/perplexity.ts

Alternatives

No response

Additional Context

  • https://x.com/mdj_dev/status/1766017595243725281?s=20

    Hint: GPT-4 Turbo Preview is ~3x cheaper than plain GPT-4. Perplexity models are ~8x cheaper than that.

  • https://docs.perplexity.ai/docs/pricing CleanShot 2024-03-09 at 00 20 18@2x

km-tr avatar Mar 08 '24 15:03 km-tr

lets see if we get likes and activity on this FR

di-sukharev avatar Mar 09 '24 04:03 di-sukharev

Would love to see more models and support. Selfishly, would love to see Google models added.

CleanShot 2024-03-11 at 11 42 05@2x

drewpayment avatar Mar 11 '24 15:03 drewpayment

Claude's Haiku service might be a good option since it's affordable and fast.

https://github.com/anthropics/anthropic-sdk-typescript

If I can find the time, I'd like to give it a try.

km-tr avatar Mar 14 '24 06:03 km-tr

@km-tr just replied to the opened issue, lets go from there

di-sukharev avatar Mar 15 '24 07:03 di-sukharev

the issue for reference https://github.com/di-sukharev/opencommit/issues/312

di-sukharev avatar Mar 18 '24 04:03 di-sukharev

@km-tr hello! we have added claude, but not perplexity :) do you want to introduce a PR and we manage from there?

di-sukharev avatar Aug 18 '24 10:08 di-sukharev

@di-sukharev Sorry, I was busy and couldn't get to it earlier.

km-tr avatar Sep 09 '24 10:09 km-tr