Build a small text classifier with secret-safe configuration, output validation, and useful failure logs.
从环境初始化到输出校验,完成一次密钥不入代码、错误能够追踪的文本分类调用。