yumenlong's recent timeline updates
yumenlong

yumenlong

V2EX member #249191, joined on 2017-08-17 13:14:31 +08:00
Today's activity rank 1863
Per yumenlong's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
yumenlong's recent replies
NzUxOTYyNkBxcS5jb20= 谢谢
NzUxOTYyNkBxcS5jb20= 谢谢
可以了,令牌必须选择一个分组才行
老板你的 api 就用不了呀,切换哪个模型都是'No available channel for model under group default (distributor) @chensitong
openai.InternalServerError: Error code: 503 - {'error': {'code': 'model_not_found', 'message': 'No available channel for model gpt-5.0 under group default (distributor) (request id: 20260326083512584663133ALyxXOya)', 'type': 'new_api_error'}}
api 选择 gpt-5.1 报错呀
使用 ConcurrentRotatingFileHandler 可以解决多进程日志记录的问题。ConcurrentRotatingFileHandler 是 ConcurrentLogHandler 库的一部分,专门设计用于在��进程环境中安全地进行日志记录和日志轮转。
import logging
from logging import getLogger, DEBUG
from concurrent_log_handler import ConcurrentRotatingFileHandler

formatter_log = logging.Formatter('%(asctime)s%(filename)s[%(lineno)d]%(funcName)s %(levelname)s %(message)s')

logger = getLogger()
logfile = os.path.abspath("log/resource.log")
rotateHandler = ConcurrentRotatingFileHandler(logfile, "a", 3000 * 1024, 50)
rotateHandler.setFormatter(formatter_log)
logger.addHandler(rotateHandler)
logger.setLevel(DEBUG)
我的也是 gunicorn 多进程,使用 ConcurrentRotatingFileHandler 正常记录多进程日志.
Jan 8, 2025
Replied to a topic by lijianan 职场话题 请教 v 友们一个关于薪资发放的问题
肯定选择拿美刀啊,去香港一趟办理中银香港卡,港卡美金港币随便换,可以绑定微信直接消费人民币扣港币,不用换汇
Aug 18, 2024
Replied to a topic by Lange 生活 跟各位老铁们请教一下关于房子贷款的问题
贵阳商转工就需要提前还完差额部分,转为存工贷,不能转混合贷.
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   860 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 20:48 · PVG 04:48 · LAX 13:48 · JFK 16:48
♥ Do have faith in what you're doing.