UNPKG

@pinecone-database/pinecone

Version:

This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.

52 lines 1.85 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Pinecone Inference API * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors. * * The version of the OpenAPI document: 2025-04 * Contact: support@pinecone.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ModelInfoListToJSON = exports.ModelInfoListFromJSONTyped = exports.ModelInfoListFromJSON = exports.instanceOfModelInfoList = void 0; const runtime_1 = require("../runtime"); const ModelInfo_1 = require("./ModelInfo"); /** * Check if a given object implements the ModelInfoList interface. */ function instanceOfModelInfoList(value) { let isInstance = true; return isInstance; } exports.instanceOfModelInfoList = instanceOfModelInfoList; function ModelInfoListFromJSON(json) { return ModelInfoListFromJSONTyped(json, false); } exports.ModelInfoListFromJSON = ModelInfoListFromJSON; function ModelInfoListFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'models': !(0, runtime_1.exists)(json, 'models') ? undefined : (json['models'].map(ModelInfo_1.ModelInfoFromJSON)), }; } exports.ModelInfoListFromJSONTyped = ModelInfoListFromJSONTyped; function ModelInfoListToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'models': value.models === undefined ? undefined : (value.models.map(ModelInfo_1.ModelInfoToJSON)), }; } exports.ModelInfoListToJSON = ModelInfoListToJSON; //# sourceMappingURL=ModelInfoList.js.map