更新
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user