修改issue墨冰

This commit is contained in:
SengokuCola
2025-03-15 15:12:52 +08:00
parent cf5ee27868
commit e219adec68
3 changed files with 21 additions and 4 deletions

View File

@@ -12,6 +12,23 @@ body:
- label: "我确认在 Issues 列表中并无其他人已经提出过与此问题相同或相似的问题" - label: "我确认在 Issues 列表中并无其他人已经提出过与此问题相同或相似的问题"
required: true required: true
- label: "我使用了 Docker" - label: "我使用了 Docker"
- type: dropdown
attributes:
label: "使用的分支"
description: "请选择您正在使用的版本分支"
options:
- main
- main-fix
- refactor
validations:
required: true
- type: input
attributes:
label: "具体版本号"
description: "请输入您使用的具体版本号"
placeholder: "例如0.5.11、0.5.8"
validations:
required: true
- type: textarea - type: textarea
attributes: attributes:
label: 遇到的问题 label: 遇到的问题

View File

@@ -882,8 +882,8 @@ class Hippocampus:
matched_topics.add(input_topic) matched_topics.add(input_topic)
adjusted_sim = sim * penalty adjusted_sim = sim * penalty
topic_similarities[input_topic] = max(topic_similarities.get(input_topic, 0), adjusted_sim) topic_similarities[input_topic] = max(topic_similarities.get(input_topic, 0), adjusted_sim)
logger.debug( # logger.debug(
f"[激活] 主题「{input_topic}」-> 「{memory_topic}」(内容数: {content_count}, 相似度: {adjusted_sim:.3f})") # f"[激活] 主题「{input_topic}」-> 「{memory_topic}」(内容数: {content_count}, 相似度: {adjusted_sim:.3f})")
# 计算主题匹配率和平均相似度 # 计算主题匹配率和平均相似度
topic_match = len(matched_topics) / len(identified_topics) topic_match = len(matched_topics) / len(identified_topics)

View File

@@ -165,8 +165,8 @@ class LLM_request:
# 判断是否为流式 # 判断是否为流式
stream_mode = self.params.get("stream", False) stream_mode = self.params.get("stream", False)
logger_msg = "进入流式输出模式," if stream_mode else "" logger_msg = "进入流式输出模式," if stream_mode else ""
logger.debug(f"{logger_msg}发送请求到URL: {api_url}") # logger.debug(f"{logger_msg}发送请求到URL: {api_url}")
logger.info(f"使用模型: {self.model_name}") # logger.info(f"使用模型: {self.model_name}")
# 构建请求体 # 构建请求体
if image_base64: if image_base64: