[desktop] Change name of model to disallow even WIP uploads

Just in case someone goes out of their way to build from source, enable the WIP dev flag and upload WIP embeddings.
This commit is contained in:
Manav Rathi
2024-07-19 06:21:32 +05:30
parent 7b0646987b
commit 16a11a663e

View File

@@ -46,7 +46,7 @@ import { type RemoteFaceIndex } from "./face";
* all the derived data associated with a file.
*/
// TODO-ML: Fix name to "combined" before release
type EmbeddingModel = "onnx-clip" /* Combined format */;
type EmbeddingModel = "xxxx-xxxx" /* Combined format */;
const RemoteEmbedding = z.object({
/** The ID of the file whose embedding this is. */
@@ -200,7 +200,7 @@ export const fetchDerivedData = async (
filesByID: Map<number, EnteFile>,
): Promise<Map<number, RemoteDerivedData>> => {
// TODO-ML: Fix name to "combined" before release
const remoteEmbeddings = await fetchEmbeddings("onnx-clip", [
const remoteEmbeddings = await fetchEmbeddings("xxxx-xxxx", [
...filesByID.keys(),
]);
@@ -296,7 +296,7 @@ export const putDerivedData = async (
// TODO-ML: Fix name to "combined" before release
putEmbedding(
enteFile,
"onnx-clip",
"xxxx-xxxx",
await gzip(JSON.stringify(derivedData)),
);