We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989f19d commit f24cd1aCopy full SHA for f24cd1a
src/platform/endpoint/common/chatModelCapabilities.ts
@@ -22,8 +22,14 @@ async function getSha256Hash(text: string): Promise<string> {
22
return hash;
23
}
24
25
+const HIDDEN_MODEL_A_HASHES = [
26
+ 'a99dd17dfee04155d863268596b7f6dd36d0a6531cd326348dbe7416142a21a3',
27
+ '6b0f165d0590bf8d508540a796b4fda77bf6a0a4ed4e8524d5451b1913100a95'
28
+];
29
+
30
export async function isHiddenModelA(model: LanguageModelChat | IChatEndpoint) {
- return await getSha256Hash(model.family) === 'a99dd17dfee04155d863268596b7f6dd36d0a6531cd326348dbe7416142a21a3';
31
+ const h = await getSha256Hash(model.family);
32
+ return HIDDEN_MODEL_A_HASHES.includes(h);
33
34
35
export async function isHiddenModelB(model: LanguageModelChat | IChatEndpoint) {
0 commit comments