diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-09-05 15:25:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 15:25:10 +0200 |
commit | 4323662008519396c598b4e14ab87923fadff923 (patch) | |
tree | 85ab7d042d3a77d3ca579e886b96d474fbfc6229 /g4f/Provider/OpenAssistant.py | |
parent | ~ | Merge pull request #872 (diff) | |
parent | type hints (diff) | |
download | gpt4free-4323662008519396c598b4e14ab87923fadff923.tar gpt4free-4323662008519396c598b4e14ab87923fadff923.tar.gz gpt4free-4323662008519396c598b4e14ab87923fadff923.tar.bz2 gpt4free-4323662008519396c598b4e14ab87923fadff923.tar.lz gpt4free-4323662008519396c598b4e14ab87923fadff923.tar.xz gpt4free-4323662008519396c598b4e14ab87923fadff923.tar.zst gpt4free-4323662008519396c598b4e14ab87923fadff923.zip |
Diffstat (limited to 'g4f/Provider/OpenAssistant.py')
-rw-r--r-- | g4f/Provider/OpenAssistant.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/g4f/Provider/OpenAssistant.py b/g4f/Provider/OpenAssistant.py index 542af78f..3a931597 100644 --- a/g4f/Provider/OpenAssistant.py +++ b/g4f/Provider/OpenAssistant.py @@ -1,8 +1,12 @@ +from __future__ import annotations + import json + from aiohttp import ClientSession from ..typing import Any, AsyncGenerator -from .base_provider import AsyncGeneratorProvider, get_cookies, format_prompt +from .base_provider import AsyncGeneratorProvider, format_prompt, get_cookies + class OpenAssistant(AsyncGeneratorProvider): url = "https://open-assistant.io/chat" |