fix: 统一知识库技能模型名称为 glm-5,补充 OCR 和 kb-funasr 说明
- kb-deep-analyzer: glm-4.7 → glm-5, gpt-4 → glm-5 - kb-workflow: 步骤5增加 OCR 和 kb-funasr 作为备用方案 - 统一命令使用 --type subtitle-download
This commit is contained in:
@@ -39,7 +39,7 @@ class SimpleAIClient:
|
||||
def __init__(self, api_key: str = None, provider: str = None, model: str = None, base_url: str = None):
|
||||
self.api_key = api_key or os.environ.get("AI_API_KEY", "")
|
||||
self.provider = provider or os.environ.get("AI_PROVIDER", "")
|
||||
self.model = model or os.environ.get("AI_MODEL", "gpt-4")
|
||||
self.model = model or os.environ.get("AI_MODEL", "glm-5")
|
||||
self.base_url = base_url or os.environ.get("AI_BASE_URL", "")
|
||||
self.max_retries = 3
|
||||
|
||||
@@ -447,7 +447,7 @@ def main():
|
||||
ai_client = SimpleAIClient(
|
||||
api_key=args.api_key or os.environ.get("AI_API_KEY", ""),
|
||||
provider=args.provider or os.environ.get("AI_PROVIDER", ""),
|
||||
model=args.model or os.environ.get("AI_MODEL", "gpt-4"),
|
||||
model=args.model or os.environ.get("AI_MODEL", "glm-5"),
|
||||
base_url=args.base_url or os.environ.get("AI_BASE_URL", "")
|
||||
)
|
||||
analyzer = DeepAnalyzer(ai_client)
|
||||
|
||||
Reference in New Issue
Block a user