Skip to content

Commit

Permalink
GitHub Action updated. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nagaev authored Feb 8, 2024
1 parent a47aa62 commit 9e1ea86
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 9 deletions.
4 changes: 2 additions & 2 deletions hiroshi/models.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import time

from g4f import BaseProvider, RetryProvider
from g4f.base_provider import BaseProvider
from g4f.models import Model, ModelUtils
from g4f.models import default as default_model
from g4f.Provider import ProviderUtils
from g4f.Provider import ProviderUtils, RetryProvider
from loguru import logger
from pydantic import BaseModel, Field

Expand Down
14 changes: 8 additions & 6 deletions hiroshi/services/gpt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import g4f
from g4f import BaseProvider
from g4f.base_provider import BaseProvider
from g4f.models import Model
from loguru import logger

Expand All @@ -10,12 +10,14 @@
"GPT-3.5 (The best/fastest provider)": ("gpt_35_long", "Default"),
"GPT-4 (The best/fastest provider)": ("gpt_4", "Default"),
"Bing (GPT-4)": ("gpt_4", "Bing"),
"Phind (GPT-4)": ("gpt_4", "Phind"),
"Aichat (GPT-3.5)": ("gpt-3.5-turbo", "Aichat"),
"GeekGpt (GPT-3.5)": ("gpt-3.5-turbo", "GeekGpt"),
"ChatBase (GPT-3.5)": ("gpt-3.5-turbo", "ChatBase"),
"ChatgptAi (GPT-3.5)": ("gpt-3.5-turbo", "ChatgptAi"),
"FreeGpt (GPT-3.5)": ("gpt-3.5-turbo", "FreeGpt"),
"GptGo (GPT-3.5)": ("gpt-3.5-turbo", "GptGo"),
"You (GPT-3.5)": ("gpt-3.5-turbo", "You"),
"Llama (Llama 2 70B)": ("meta-llama/Llama-2-70b-chat-hf", "Llama2"),
"Llama (Llava 13B)": ("Llava", "Llama2"),
"Llama (Llama 2 7B)": ("meta/llama-2-7b-chat", "Llama2"),
"Llama (Llama 2 13B)": ("meta/llama-2-13b-chat", "Llama2"),
"Llama (Llama 2 70B)": ("meta/llama-2-70b-chat", "Llama2"),
}


Expand Down
94 changes: 93 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ g4f = "*"
loguru = "^0.7"
pydantic = {extras = ["dotenv"], version = "1.10.9"}
python-telegram-bot = "^20"
brotli = "^1.1.0"

[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ aiosignal==1.3.1 ; python_version >= "3.11" and python_version < "4.0"
anyio==4.2.0 ; python_version >= "3.11" and python_version < "4.0"
async-timeout==4.0.3 ; python_version >= "3.11" and python_version < "4.0"
attrs==23.2.0 ; python_version >= "3.11" and python_version < "4.0"
brotli==1.1.0 ; python_version >= "3.11" and python_version < "4.0"
certifi==2024.2.2 ; python_version >= "3.11" and python_version < "4.0"
charset-normalizer==3.3.2 ; python_version >= "3.11" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.11" and python_version < "4.0" and sys_platform == "win32"
Expand Down

0 comments on commit 9e1ea86

Please sign in to comment.