fix: remove AliSMS override of sms_engine, let smssend module handle SMS
This commit is contained in:
parent
5cb9cef2a9
commit
9855eb7ba7
@ -1,6 +1,5 @@
|
||||
from ahserver.serverenv import ServerEnv
|
||||
from sqlor.dbpools import DBPools
|
||||
from alisms import AliSMS
|
||||
|
||||
def PopError(title='Error', message='Error happened'):
|
||||
return {
|
||||
@ -49,9 +48,7 @@ async def get_llminstances_by_modeltype(mtid):
|
||||
|
||||
|
||||
def set_globalvariable():
|
||||
sms_engine = sms = AliSMS('LTAI5t5w7xsZgueod6uZ3TCD', 'n1HttSbQvgEbjvf62Gzl1aagfKyIyS')
|
||||
g = ServerEnv()
|
||||
g.sms_engine = sms_engine
|
||||
g.PopError = PopError
|
||||
g.PopMessage = PopMessage
|
||||
g.get_llm_types = get_llm_types
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user