feat: 优化LLM显示、修复API路径、重构自主操作SOP、添加sche_tasks到gitignore
- agentmain.py: LLM列表显示增加backend类型 - sidercall.py: 统一API endpoint路径为/v1/chat/completions - autonomous_operation_sop.md: 重构任务选择逻辑和报告目录规则 - .gitignore: 添加sche_tasks/目录排除 - 移除git追踪的sche_tasks任务报告文件
This commit is contained in:
@@ -51,7 +51,7 @@ class GeneraticAgent:
|
||||
def next_llm(self, n=-1):
|
||||
self.llm_no = ((self.llm_no + 1) if n < 0 else n) % len(self.llmclient.backends)
|
||||
self.llmclient.last_tools = ''
|
||||
def list_llms(self): return [(i, b.default_model, i == self.llm_no) for i, b in enumerate(self.llmclient.backends)]
|
||||
def list_llms(self): return [(i, f"{type(b).__name__}/{b.default_model}", i == self.llm_no) for i, b in enumerate(self.llmclient.backends)]
|
||||
def get_llm_name(self):
|
||||
b = self.llmclient.backends[self.llm_no]
|
||||
return f"{type(b).__name__}/{b.default_model}"
|
||||
|
||||
Reference in New Issue
Block a user