update
This commit is contained in:
parent
262a4e2fb0
commit
d8cafea86b
@ -248,8 +248,9 @@ async def chat(request: ChatRequest,
|
||||
)
|
||||
|
||||
# 扣除用户积分
|
||||
manager = UserManager(session)
|
||||
manager.consume_user_points(current_user["id"], 1)
|
||||
if not is_member:
|
||||
manager = UserManager(session)
|
||||
manager.consume_user_points(current_user["id"], 1)
|
||||
|
||||
# 获取response的stream
|
||||
def stream_response():
|
||||
|
||||
@ -29,7 +29,7 @@ services:
|
||||
cryptoai-api:
|
||||
build: .
|
||||
container_name: cryptoai-api
|
||||
image: cryptoai-api:0.2.14
|
||||
image: cryptoai-api:0.2.15
|
||||
restart: always
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user