summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/deprecated
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner@lohaus.eu>2023-10-15 19:10:25 +0200
committerHeiner Lohaus <heiner@lohaus.eu>2023-10-15 19:10:25 +0200
commitc1adfbee8e15406dbdce75f87de47dc1c0dd17df (patch)
treeec8be1ecf785cfd2f8dd0c5592b0e79a291116e0 /g4f/Provider/deprecated
parent~ (diff)
downloadgpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.tar
gpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.tar.gz
gpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.tar.bz2
gpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.tar.lz
gpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.tar.xz
gpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.tar.zst
gpt4free-c1adfbee8e15406dbdce75f87de47dc1c0dd17df.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/deprecated/H2o.py (renamed from g4f/Provider/H2o.py)6
-rw-r--r--g4f/Provider/deprecated/__init__.py3
2 files changed, 4 insertions, 5 deletions
diff --git a/g4f/Provider/H2o.py b/g4f/Provider/deprecated/H2o.py
index 9fac92a4..47290a3e 100644
--- a/g4f/Provider/H2o.py
+++ b/g4f/Provider/deprecated/H2o.py
@@ -5,13 +5,12 @@ import uuid
from aiohttp import ClientSession
-from ..typing import AsyncResult, Messages
-from .base_provider import AsyncGeneratorProvider, format_prompt
+from ...typing import AsyncResult, Messages
+from ..base_provider import AsyncGeneratorProvider, format_prompt
class H2o(AsyncGeneratorProvider):
url = "https://gpt-gm.h2o.ai"
- working = False
model = "h2oai/h2ogpt-gm-oasst1-en-2048-falcon-40b-v1"
@classmethod
@@ -86,7 +85,6 @@ class H2o(AsyncGeneratorProvider):
async with session.delete(
f"{cls.url}/conversation/{conversationId}",
proxy=proxy,
- json=data
) as response:
response.raise_for_status()
diff --git a/g4f/Provider/deprecated/__init__.py b/g4f/Provider/deprecated/__init__.py
index b37b7edd..db48c3fb 100644
--- a/g4f/Provider/deprecated/__init__.py
+++ b/g4f/Provider/deprecated/__init__.py
@@ -11,4 +11,5 @@ from .Wuguokai import Wuguokai
from .V50 import V50
from .FastGpt import FastGpt
from .Aivvm import Aivvm
-from .Vitalentum import Vitalentum \ No newline at end of file
+from .Vitalentum import Vitalentum
+from .H2o import H2o \ No newline at end of file