To use a reverse proxy with Janitor AI, follow these steps:
Steps to Set Up a Reverse Proxy in Janitor AI
-
Create a Janitor AI Account:
- Ensure you have an account on Janitor AI. If not, sign up on their website.
-
Access API Settings:
- Log in to your Janitor AI account.
- Click on any character you want to chat with and then click on the chat button.
- Click on the three lines (menu) and go to API Settings.
-
Select OpenAI Model:
- In the API settings, select the OpenAI model you want to use (e.g., GPT-3.5 Turbo).
-
Find a Reverse Proxy URL:
- Go to Google and search for "Janitor AI reverse proxy GitHub" or join the Janitor AI Discord server to find available reverse proxy URLs.
- Copy the reverse proxy URL you want to use. For example, you might find URLs like:
https://api.pawan.krd/unfiltered/v1(for unfiltered content)https://api.pawan.krd/v1(for SFW content) .
-
Generate and Copy the API Key:
- In the Discord server, go to the bot section and type
/keyto generate an API key. - Copy the generated API key.
- In the Discord server, go to the bot section and type
-
Configure Reverse Proxy in Janitor AI:
- Go back to the Janitor AI API settings.
- Paste the reverse proxy URL and the API key into the respective fields.
- Save the settings.
-
Set Custom Prompts (Optional):
- You can set a custom prompt or use the default ones provided.
- Save the settings again after configuring the prompts.
-
Start Chatting:
- Once everything is set up, you should see a message indicating that the API is ready.
- You can now start chatting with your selected character using the reverse proxy setup.
Benefits and Considerations
Benefits:
- Cost Efficiency: Using a reverse proxy can help you bypass the need for a paid OpenAI API key.
- Performance: Reverse proxies can improve performance by caching responses and load balancing requests.
- Security: They add an additional layer of security by acting as an intermediary between your client and the server.
Considerations:
- Privacy: Be aware of the logging policies of the reverse proxy provider. Your data might be logged and stored.
- Stability: Reverse proxies can sometimes be unstable or experience high traffic, leading to downtime.
By following these steps, you can effectively set up and use a reverse proxy with Janitor AI, enhancing your experience with the platform while managing costs and performance.
Answered August 12 2024 by Toolify
