opencommit
opencommit copied to clipboard
[Feature]: Perplexity Support
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
lets see if we get likes and activity on this FR
Would love to see more models and support. Selfishly, would love to see Google models added.
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 just replied to the opened issue, lets go from there
the issue for reference https://github.com/di-sukharev/opencommit/issues/312
@km-tr hello! we have added claude, but not perplexity :) do you want to introduce a PR and we manage from there?
@di-sukharev Sorry, I was busy and couldn't get to it earlier.