Skip to content

Commit f24cd1a

Browse files
authored
fix: update model hashes to use apply patch (#1216)
1 parent 989f19d commit f24cd1a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/platform/endpoint/common/chatModelCapabilities.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ async function getSha256Hash(text: string): Promise<string> {
2222
return hash;
2323
}
2424

25+
const HIDDEN_MODEL_A_HASHES = [
26+
'a99dd17dfee04155d863268596b7f6dd36d0a6531cd326348dbe7416142a21a3',
27+
'6b0f165d0590bf8d508540a796b4fda77bf6a0a4ed4e8524d5451b1913100a95'
28+
];
29+
2530
export async function isHiddenModelA(model: LanguageModelChat | IChatEndpoint) {
26-
return await getSha256Hash(model.family) === 'a99dd17dfee04155d863268596b7f6dd36d0a6531cd326348dbe7416142a21a3';
31+
const h = await getSha256Hash(model.family);
32+
return HIDDEN_MODEL_A_HASHES.includes(h);
2733
}
2834

2935
export async function isHiddenModelB(model: LanguageModelChat | IChatEndpoint) {

0 commit comments

Comments
 (0)