生成指定长度的随机字母数字组合
(length=6)
| 60 | json.dump(data, f, ensure_ascii=False, indent=2) |
| 61 | |
| 62 | def get_active_llm_config(): |
| 63 | """获取当前可用的 LLM 配置(统一走 llm_config 模块,出错时回退默认值)。""" |
| 64 | try: |
| 65 | return load_llm_config() |
| 66 | except ValueError: |
| 67 | return { |
| 68 | "api_key": "", |
no outgoing calls
no test coverage detected