summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/deprecated/H2o.py
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/H2o.py
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
1 files changed, 2 insertions, 4 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()