Skip to content

Commit 803d063

Browse files
committed
chore: Update dependencies
1 parent 382a79c commit 803d063

File tree

6 files changed

+13
-255
lines changed

6 files changed

+13
-255
lines changed

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77

88
INSTALL_REQUIRE = [
99
"requests[socks]>=2.32.3",
10-
"appdirs==1.4.4",
11-
"pyyaml==6.0.1",
10+
"appdirs>=1.4.4",
11+
"pyyaml>=6.0.1",
1212
"poe-api-wrapper==1.7.0",
13-
"brotli==1.1.0",
14-
"g4f>=0.3.3.3",
13+
"brotli>=1.1.0",
14+
"g4f==0.3.3.3",
1515
"python-vlc>=3.0.20",
16-
"httpx==0.27.2",
17-
"click==8.1.3",
16+
"httpx>=0.27.2",
17+
"click>=8.1.3",
1818
]
1919

2020
cli_reqs = [
21-
"rich==13.3.4",
21+
"rich>=13.3.4",
2222
"clipman==3.1.0",
2323
"pyperclip==1.8.2",
24-
"colorama==0.4.6",
25-
"python-dotenv==1.0.0",
24+
"colorama>=0.4.6",
25+
"python-dotenv>=1.0.0",
2626
"prompt-toolkit==3.0.48",
2727
]
2828

src/pytgpt/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"g4fauto",
2020
"poe",
2121
"groq",
22-
"perplexity",
2322
"novita",
2423
"ai4chat",
2524
"deepseek",
@@ -32,8 +31,6 @@
3231
available_providers = tgpt_providers + gpt4free_providers
3332

3433
__all__ = [
35-
"appdir",
36-
"imager",
3734
] + available_providers
3835

3936
logging.getLogger("httpx").setLevel(logging.ERROR)

src/pytgpt/auto/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from pytgpt.base import Provider, AsyncProvider
22
from pytgpt.koboldai import KOBOLDAI, AsyncKOBOLDAI
33
from pytgpt.phind import PHIND, AsyncPHIND
4-
from pytgpt.perplexity import PERPLEXITY
54
from pytgpt.gpt4free import GPT4FREE, AsyncGPT4FREE
65
from pytgpt.gpt4free.utils import TestProviders
76
from pytgpt.auto.errors import AllProvidersFailure
@@ -14,9 +13,8 @@
1413
import logging
1514

1615

17-
provider_map: dict[str, Union[KOBOLDAI, PHIND, PERPLEXITY, GPT4FREE]] = {
16+
provider_map: dict[str, Union[KOBOLDAI, PHIND, GPT4FREE]] = {
1817
"phind": PHIND,
19-
"perplexity": PERPLEXITY,
2018
"koboldai": KOBOLDAI,
2119
"gpt4free": GPT4FREE,
2220
}

src/pytgpt/console.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -628,22 +628,6 @@ def __init__(
628628
act=awesome_prompt,
629629
)
630630

631-
elif provider == "perplexity":
632-
from pytgpt.perplexity import PERPLEXITY
633-
634-
self.bot = PERPLEXITY(
635-
is_conversation=disable_conversation,
636-
max_tokens=max_tokens,
637-
timeout=timeout,
638-
intro=intro,
639-
filepath=filepath,
640-
update_file=update_file,
641-
proxies=proxies,
642-
history_offset=history_offset,
643-
act=awesome_prompt,
644-
quiet=quiet,
645-
)
646-
647631
elif provider == "novita":
648632
assert auth, (
649633
"Novita's API-key is required. " "Use the flag `--key` or `-k`"
@@ -2422,7 +2406,7 @@ def test(
24222406
quiet=quiet,
24232407
timeout=timeout,
24242408
selenium=selenium,
2425-
do_log=disable_logging == False,
2409+
do_log=disable_logging is False,
24262410
)
24272411
if best:
24282412
click.secho(test.best)
@@ -2528,15 +2512,15 @@ def generate_image(
25282512
task = progress.add_task(
25292513
f"[cyan]Generating ...[{amount}]",
25302514
total=amount,
2531-
visible=quiet == False,
2515+
visible=quiet is False,
25322516
)
25332517
imager: Prodia | Imager = provider_obj(
25342518
timeout=timeout, proxies=proxy if proxy else {}
25352519
)
25362520
for image in imager.generate(
25372521
prompt=prompt,
25382522
amount=amount,
2539-
additives=no_additives == False,
2523+
additives=no_additives is False,
25402524
stream=stream, # Just a hack for temporary save. Raises "'async_generator' object is not iterable"
25412525
):
25422526
imager.save([image], name=name, dir=directory)

src/pytgpt/perplexity/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/pytgpt/perplexity/main.py

Lines changed: 0 additions & 212 deletions
This file was deleted.

0 commit comments

Comments
 (0)