Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
6.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 20, 2023
1 parent e08dfd8 commit cc1b8ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 9 additions & 1 deletion docs/wiki/V3.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Get max tokens
def ask_stream(prompt: str,
role: str = "user",
convo_id: str = "default",
model: str = None,
pass_history: bool = True,
**kwargs)
```

Expand All @@ -91,6 +93,8 @@ Ask a question
async def ask_stream_async(prompt: str,
role: str = "user",
convo_id: str = "default",
model: str = None,
pass_history: bool = True,
**kwargs) -> AsyncGenerator[str, None]
```

Expand All @@ -104,6 +108,8 @@ Ask a question
async def ask_async(prompt: str,
role: str = "user",
convo_id: str = "default",
model: str = None,
pass_history: bool = True,
**kwargs) -> str
```

Expand All @@ -117,6 +123,8 @@ Non-streaming ask
def ask(prompt: str,
role: str = "user",
convo_id: str = "default",
model: str = None,
pass_history: bool = True,
**kwargs) -> str
```

Expand Down Expand Up @@ -157,7 +165,7 @@ Save the Chatbot configuration to a JSON file
#### load

```python
def load(file: str, *keys_: str) -> None
def load(file: Path, *keys_: str) -> None
```

Load the Chatbot configuration from a JSON file
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="revChatGPT",
version="6.3.4",
version="6.3.5",
description="ChatGPT is a reverse engineering of OpenAI's ChatGPT API",
long_description=open(PATH, encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
5 changes: 2 additions & 3 deletions src/revChatGPT/V1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import requests
from httpx import AsyncClient
from OpenAIAuth import Auth0 as Authenticator

from rich.live import Live
from rich.markdown import Markdown

Expand Down Expand Up @@ -207,11 +206,11 @@ def __init__(
for domain in self.config.get("unverified_plugin_domains"):
if self.config.get("plugin_ids"):
self.config["plugin_ids"].append(
self.get_unverified_plugin(domain, install=True).get("id")
self.get_unverified_plugin(domain, install=True).get("id"),
)
else:
self.config["plugin_ids"] = [
self.get_unverified_plugin(domain, install=True).get("id")
self.get_unverified_plugin(domain, install=True).get("id"),
]

@logger(is_timed=True)
Expand Down

0 comments on commit cc1b8ee

Please sign in to comment.