rksm / org-ai

Emacs as your personal AI assistant. Use LLMs such as ChatGPT or LLaMA for text generation or DALL-E and Stable Diffusion for image generation. Also supports speech input / output.
GNU General Public License v3.0
702 stars 56 forks source link

Perplexity.ai instructions are outdated #136

Closed lukashuebner closed 1 week ago

lukashuebner commented 1 week ago

Thanks for providing this great plugin! :-)

It seems like the perplexity.ai instructions are outdated as they renamed their models. The following works for me:

    ;; Register Perplexity AI
    (gptel-make-openai "Perplexity"
        :host "api.perplexity.ai"
        :endpoint "/chat/completions"
        :key <...>
        :stream t
        :models '(llama-3.1-sonar-small-128k-online
                  llama-3.1-sonar-large-128k-online
                  llama-3.1-sonar-huge-128k-online))
lukashuebner commented 1 week ago

Sorry, wrong repo ...