This commit is contained in:
Your Name
2026-10-09 09:36:17 +08:00
parent 88b94c2fc6
commit 51d8fd409e
727 changed files with 3753398 additions and 102 deletions
@@ -15,7 +15,6 @@ final class NihaixiaClinicalSkill
{
public const VERSION = 'nihaixia-270e94e-clinical-v1';
public const REPOSITORY_URL = 'https://github.com/coinweth/nihaixia-skill';
public const COMMIT = '270e94e637c4249dc411e54ac6715f21247de3cb';
public const SECTIONS = ['六经速查表', '六经辨证诊断公式', '七步走辨证思维模式'];
@@ -24,12 +23,26 @@ final class NihaixiaClinicalSkill
{
return [
'title' => '倪海厦临床参考 Skill',
'url' => self::REPOSITORY_URL . '/blob/' . self::COMMIT . '/SKILL.md',
'url' => '',
'path' => 'SKILL.md',
'commit' => self::COMMIT,
'sections' => self::SECTIONS,
];
}
/** Remove external links from saved prescription results without changing their attribution. */
public static function localizeKnowledgeSource(mixed $source): ?array
{
if (!is_array($source)) {
return null;
}
$source['url'] = '';
if (($source['commit'] ?? null) === self::COMMIT && empty($source['path'])) {
$source['path'] = 'SKILL.md';
}
return $source;
}
/** Historical reports only claim the reference when their saved version identifies it. */
public static function knowledgeSourceForPromptVersion(string $promptVersion): ?array
{