Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LibreChat
  3. Missing model even with configured Api Key

Missing model even with configured Api Key

Scheduled Pinned Locked Moved Solved LibreChat
12 Posts 2 Posters 323 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote last edited by
    #2

    Hello @p44
    Did you restart the app after editing the env file?

    P 1 Reply Last reply
    0
    • jamesJ james

      Hello @p44
      Did you restart the app after editing the env file?

      P Offline
      P Offline
      p44
      translator
      wrote last edited by
      #3

      @james Yes, I followed all instructions... OpenAi and Anthropic they work fine, Perplexity no...

      1 Reply Last reply
      0
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by
        #4

        Hello @p44 just making sure.
        Thanks for reporting.
        I will look into it.

        P 1 Reply Last reply
        1
        • jamesJ james

          Hello @p44 just making sure.
          Thanks for reporting.
          I will look into it.

          P Offline
          P Offline
          p44
          translator
          wrote last edited by
          #5

          @james Thanks James, waiting for your update 🙂

          1 Reply Last reply
          0
          • jamesJ Offline
            jamesJ Offline
            james
            Staff
            wrote last edited by
            #6

            Hello @p44
            Looking into it, but Perplexity does require payment setup for the API, so I am unable to generate API credentials for testing.

            If you have some API credentials, would you be willing to provide them to me via a DM in the forum for testing?

            1 Reply Last reply
            0
            • P Offline
              P Offline
              p44
              translator
              wrote last edited by
              #7

              @james thanks a lot for your patience and your efforts. I just sent a DM with Perplexity Api Key.

              1 Reply Last reply
              1
              • P p44

                Hello all,

                I configured API keys in env file: first for OpenAi, second for Anthropic, and third for Perplexity.

                However, Perplexity doesn't appear among the models...

                alt text

                I also tried to configure the template in librechat.yaml, as per the guide, but nothing to do...

                Any ideas?

                jamesJ Offline
                jamesJ Offline
                james
                Staff
                wrote last edited by
                #8

                Hello @p44

                Thanks for providing the API Token.

                @p44 said in Missing model even with configured Api Key:

                I configured API keys in env file: first for OpenAi, second for Anthropic, and third for Perplexity.

                This took me longer then expected.
                It seems the variable you mentioned https://docs.openwebui.com/getting-started/env-configuration/#perplexity_api_key does not do what you think it does.

                See: https://docs.openwebui.com/features/plugin/functions/pipe#extending-the-proxy-pipe

                You can modify this proxy Pipe to support additional service providers like Anthropic, Perplexity, and more by adjusting the API endpoints, headers, and logic within the pipes and pipe functions.

                So Perplexity is not supported in the same way OpenAI etc. is.
                Adding the API URL and token via the connections tab did also not solve this.

                After some more research, I found for Perplexity a custom Function is needed.
                A custom what?

                After even more search I found this: https://openwebui.com/f/neuromechanist/perplexity_pipe which I installed after a signup.
                But you could also copy the code and add this function by hand.

                After that I simply had to paste your API token:
                4c7a2461-68cc-433a-8888-80f00b4bc3eb-image.png
                b191e6a2-41bd-46d3-b9ee-5a51c5d7f022-image.png

                Now I am able to select the modells:
                2adef48b-309d-4e57-8d00-349e880d6ecf-image.png

                and I asked it What is Cloudron, and should I use it to start a small business?


                Cloudron is a server management platform designed to simplify self-hosting web applications like WordPress, Nextcloud, GitLab, and over 100 others. It automates deployment, updates, security, and maintenance, making it accessible for users without deep technical expertise[1][5].

                Key Features for Small Businesses

                • Automated Deployment:
                  One-click installation for apps, including database provisioning, DNS configuration, and SSL certificates[1][5].
                • Maintenance & Security:
                  Automatic updates (including security patches within 24 hours), per-app backups, and offsite storage options (e.g., Amazon S3)[2][3].
                  Built-in security measures like HTTPS, HSTS, rate limiting, and app isolation[3][5].
                • Scalability:
                  Immutable infrastructure allows easy migration of apps between servers[5].
                  Supports user management with role-based access controls[1][3].

                Pros vs. Cons for Small Businesses

                Advantages Limitations
                Reduces IT overhead with automated updates and backups[1][2] Limited free customer support; paid support may add costs[1]
                Affordable starting price ($30/month) with no vendor lock-in[1][5] Requires basic technical knowledge for troubleshooting[2]
                Pre-configured apps streamline testing and deployment[4] Limited customization for advanced server configurations[2]

                Should You Use It?

                Cloudron is ideal for small businesses prioritizing ease of use and security over deep customization. It’s particularly suited for:

                • Tech-savvy teams needing rapid app deployment.
                • Startups testing tools like GitLab, Rocket.Chat, or Nextcloud[1][4].
                • Businesses with limited IT budgets, as it minimizes manual maintenance[2][5].

                However, consider alternatives if you require 24/7 support or highly customized infrastructure. For most small businesses, Cloudron’s balance of automation and affordability makes it a strong contender[1][5].

                References:
                [1] https://www.softwareadvice.com/server-management/cloudron-profile/
                [2] https://bitburners.com/a-brief-introduction-to-cloudron/
                [3] https://forum.cloudron.io/topic/3849/how-does-cloudron-work-what-does-it-do-etc
                [4] https://forum.cloudron.io/topic/2196/who-is-building-running-a-business-on-top-of-cloudron-what-s-your-model
                [5] https://www.cloudron.io


                I love that the AI used this Forum as a source. (:

                1 Reply Last reply
                1
                • P Offline
                  P Offline
                  p44
                  translator
                  wrote last edited by
                  #9

                  @james thanks for your efforts... it seems you worked on OpenWeb UI and not on LibreChat... right?

                  1 Reply Last reply
                  0
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #10

                    Hello @p44
                    Yes, I did. . .
                    Sorry for that, I will look into LibreChat also.

                    1 Reply Last reply
                    0
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by
                      #11

                      Second try.
                      I got it working in LibreChat much faster.
                      I added this to /app/data/env:

                      PERPLEXITY_API_KEY="YOUR-API-TOKEN-GOES-HERE"
                      

                      And after reading https://www.librechat.ai/docs/configuration/librechat_yaml/ai_endpoints/perplexity and adding this config to the /app/data/librechat.yaml I found multiple issues with this sample config.
                      First there were some error about something being wrong in this yaml and after fixing that, the logs complained that:

                      Error 400 Invalid model 'llama-3-sonar-small-32k-chat'. Permitted models can be found in the documentation at https://docs.perplexity.ai/guides/model-cards.
                      

                      So I fixed and tweaked this config to:

                      version: 1.2.4
                      
                      endpoints:
                        custom:
                          - name: "Perplexity"
                            apiKey: "${PERPLEXITY_API_KEY}"
                            baseURL: "https://api.perplexity.ai/"
                            models:
                              default:
                                - "sonar-deep-research"
                                - "sonar-reasoning-pro"
                                - "sonar-reasoning"
                                - "sonar-pro"
                                - "sonar"
                                - "r1-1776"
                              fetch: false
                            titleConvo: true
                            titleModel: "sonar"
                            summarize: false
                            summaryModel: "sonar"
                            forcePrompt: false
                            dropParams:
                              - "stop"
                              - "frequency_penalty"
                            modelDisplayLabel: "Perplexity"
                      

                      Which is working when using sonar, sonar-pro, sonar-reasoning, sonar-reasoning-pro but for some reason sonar-deep-research returns nothing.

                      I hope this helps and solves your issue.

                      P 1 Reply Last reply
                      2
                      • jamesJ james

                        Second try.
                        I got it working in LibreChat much faster.
                        I added this to /app/data/env:

                        PERPLEXITY_API_KEY="YOUR-API-TOKEN-GOES-HERE"
                        

                        And after reading https://www.librechat.ai/docs/configuration/librechat_yaml/ai_endpoints/perplexity and adding this config to the /app/data/librechat.yaml I found multiple issues with this sample config.
                        First there were some error about something being wrong in this yaml and after fixing that, the logs complained that:

                        Error 400 Invalid model 'llama-3-sonar-small-32k-chat'. Permitted models can be found in the documentation at https://docs.perplexity.ai/guides/model-cards.
                        

                        So I fixed and tweaked this config to:

                        version: 1.2.4
                        
                        endpoints:
                          custom:
                            - name: "Perplexity"
                              apiKey: "${PERPLEXITY_API_KEY}"
                              baseURL: "https://api.perplexity.ai/"
                              models:
                                default:
                                  - "sonar-deep-research"
                                  - "sonar-reasoning-pro"
                                  - "sonar-reasoning"
                                  - "sonar-pro"
                                  - "sonar"
                                  - "r1-1776"
                                fetch: false
                              titleConvo: true
                              titleModel: "sonar"
                              summarize: false
                              summaryModel: "sonar"
                              forcePrompt: false
                              dropParams:
                                - "stop"
                                - "frequency_penalty"
                              modelDisplayLabel: "Perplexity"
                        

                        Which is working when using sonar, sonar-pro, sonar-reasoning, sonar-reasoning-pro but for some reason sonar-deep-research returns nothing.

                        I hope this helps and solves your issue.

                        P Offline
                        P Offline
                        p44
                        translator
                        wrote last edited by
                        #12

                        @james This solution works. Thanks a lot

                        1 Reply Last reply
                        1
                        • nebulonN nebulon marked this topic as a question
                        • nebulonN nebulon has marked this topic as solved
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search