Skip to content

Commit 5a33658

Browse files
committed
feat: Add Perplexity AI support
fix: Update requirements and setup.py remove: Remove test file for Perplexity API
1 parent fd63987 commit 5a33658

File tree

4 files changed

+36
-9
lines changed

4 files changed

+36
-9
lines changed

docs/README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,14 @@ The name *python-tgpt* draws inspiration from its parent project [tgpt](https://
7474

7575
These are simply the hosts of the LLMs, they include:
7676

77-
- [Koboldai](https://koboldai-koboldcpp-tiefighter.hf.space)
78-
- [OpenAI](https://chat.openai.com) *(API key required)*
7977
- [Phind](https://www.phind.com)
78+
- [Perplexity](https://www.perplexity.ai)
8079
- [Blackboxai](https://www.blackbox.ai)
80+
- [Koboldai](https://koboldai-koboldcpp-tiefighter.hf.space)
8181
- [gpt4all](https://gpt4all.io) *(Offline)*
8282
- [Poe](https://poe.com) - Poe|Quora *(Session ID required)*
8383
- [Groq](https://console.groq.com/playground) *(API Key required)*
84-
- [Perplexity](https://www.perplexity.ai)
85-
- [YepChat](https://yep.com)
84+
- [OpenAI](https://chat.openai.com) *(API key required)*
8685

8786

8887
<details>
@@ -238,8 +237,8 @@ Hello! How can I assist you today?
238237
2. Whole Response
239238

240239
```python
241-
from pytgpt.leo import LEO
242-
bot = LEO()
240+
from pytgpt.phind import PHIND
241+
bot = PHIND()
243242
resp = bot.ask('<Your Prompt>', stream=True)
244243
for value in resp:
245244
print(value)
@@ -299,7 +298,7 @@ print(bot.chat("<Your-prompt>"))
299298
</details>
300299

301300
<summary>
302-
phind
301+
Phind
303302

304303
</summary>
305304

@@ -313,6 +312,34 @@ print(bot.chat("<Your-prompt>"))
313312

314313
<details>
315314

315+
<summary>
316+
Perplexity
317+
318+
</summary>
319+
320+
```python
321+
import pytgpt.perplexity as perplexity
322+
bot = perplexity.PERPLEXITY()
323+
print(bot.chat("<Your-prompt>"))
324+
```
325+
326+
</details>
327+
328+
<summary>
329+
Blackboxai
330+
331+
</summary>
332+
333+
```python
334+
import pytgpt.blackboxai as blackboxai
335+
bot = blackboxai.BLACKBOXAI()
336+
print(bot.chat("<Your-prompt>"))
337+
```
338+
339+
</details>
340+
341+
<details>
342+
316343
<summary>
317344
Gpt4free providers
318345

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gpt4all==2.2.0
1212
poe-api-wrapper==1.7.0
1313
python-dotenv==1.0.0
1414
brotli==1.1.0
15-
Helpingai_T2-fork>=0.3.2
15+
Helpingai-T2==0.5
1616
fastapi[all]==0.115.4
1717
python-vlc>=3.0.20
1818
httpx>=0.27.2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"poe-api-wrapper==1.7.0",
1313
"brotli==1.1.0",
1414
"g4f>=0.3.3.3",
15-
"Helpingai_T2-fork>=0.3.2",
15+
"Helpingai-T2==0.5",
1616
"python-vlc>=3.0.20",
1717
"httpx==0.27.2",
1818
]
File renamed without changes.

0 commit comments

Comments
 (0)