feat: model name log, args help hint and the proxy of key does not participate in the judgment.

This commit is contained in:
weiensong
2023-11-17 11:13:25 +08:00
parent aaacbf29ea
commit e247e7832d
7 changed files with 50 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ import requests
from random import randint
class TigerBot():
class TigerBot:
def __init__(self, tbconf=None) -> None:
self.LOG = logging.getLogger(__file__)
self.tburl = "https://api.tigerbot.com/bot-service/ai_service/gpt"
@@ -15,6 +15,9 @@ class TigerBot():
self.tbmodel = tbconf["model"]
self.fallback = ["", "快滚", "赶紧滚"]
def __repr__(self):
return 'TigerBot'
def get_answer(self, msg: str, sender: str = None) -> str:
payload = {
"text": msg,