diff --git a/docs/wiki/V3.md b/docs/wiki/V3.md index 03f9bd457f..00439bf8dd 100644 --- a/docs/wiki/V3.md +++ b/docs/wiki/V3.md @@ -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) ``` @@ -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] ``` @@ -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 ``` @@ -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 ``` @@ -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 diff --git a/setup.py b/setup.py index fcb3c3edab..e2f1f7079e 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/src/revChatGPT/V1.py b/src/revChatGPT/V1.py index 37cc7945db..de20c6992e 100644 --- a/src/revChatGPT/V1.py +++ b/src/revChatGPT/V1.py @@ -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 @@ -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)