Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deodorqnt387/priveeai-python-api
a small project for priveeAI
https://github.com/deodorqnt387/priveeai-python-api
Last synced: 27 days ago
JSON representation
a small project for priveeAI
- Host: GitHub
- URL: https://github.com/deodorqnt387/priveeai-python-api
- Owner: DeoDorqnt387
- Created: 2024-06-21T12:37:06.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T14:46:13.000Z (6 months ago)
- Last Synced: 2024-06-23T05:22:11.939Z (6 months ago)
- Language: Python
- Size: 1.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### An API For [PriveeAI](https://www.privee.ai/)!
![](https://github.com/DeoDorqnt387/PriveeAI-Python-API/blob/main/images/1.png)## Example Usage For chatting:
```python
from privee import priveeAIwhile True:
message = input("You: ")hapry = priveeAI()
response = hapry.chat(message)
print(response)
```## Prerequisites
> Rename the file .env.expl to .env
>
> Open CMD and Run pip install -r requirements.txt to install the required dependencies## Usage
You need to provide some information in the .env:
> SESSION_TOKEN # Go to the [PriveeAI](https://www.privee.ai/) website. Press F12, go to the applications tab, select Cookies, find user_session and get the value paste it here.> USERID # Enter the chat section of a random bot. Press F12. Click on the Network tab. Send a message to the bot. It should set something called botResponse. Click on it and click on Payload in the Incoming Tab. Take your user_id from there and paste it.
> CHATID # Click on a random bot. copy the part of the link where the name of the bot is written. Paste it.
> LLM # Privee-8b, Privee-70b, Privee-120b, GPT4
> Run privee.py
## You can also change your username.
```python
from privee import priveeAIhapry = priveeAI()
response = hapry.update_username("your-usename")
print(response)
```