feat: model name log, args help hint and the proxy of key does not participate in the judgment.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user