This commit is contained in:
yumoqing 2026-04-09 15:46:55 +08:00
parent 2d279434c8
commit e3e52b156c
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ from .keling import keling_token
from .jimeng import jimeng_auth_headers from .jimeng import jimeng_auth_headers
from .utils import ( from .utils import (
llm_query_orders, llm_query_orders,
read_webpath,
llm_query_price, llm_query_price,
get_llm_by_model get_llm_by_model
) )
@ -41,6 +42,7 @@ async def start_backend(app):
def load_llmage(): def load_llmage():
env = ServerEnv() env = ServerEnv()
env.llm_query_orders = llm_query_orders env.llm_query_orders = llm_query_orders
env.read_webpath = read_webpath
env.get_llm_by_model = get_llm_by_model env.get_llm_by_model = get_llm_by_model
env.llm_charging = llm_charging env.llm_charging = llm_charging
env.get_accounting_llmusages = get_accounting_llmusages env.get_accounting_llmusages = get_accounting_llmusages

View File

@ -1,7 +1,9 @@
userid = await get_user() userid = await get_user()
tasks = await get_today_asynctask_list(userid) tasks = await get_today_asynctask_list(userid)
for t in tasks: for t in tasks:
t.ioinfo = json.loads(t.ioinfo) bin = await read_webpath(t.ioinfo)
t.ioinfo = json.loads(bin.decode('utf-8')
return { return {
'status': 'ok', 'status': 'ok',