UNPKG

@pinecone-database/pinecone

Version:

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

72 lines 2.75 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Pinecone Assistant Data Plane API * Pinecone Assistant Engine is a context engine to store and retrieve relevant knowledge from millions of documents at scale. This API supports interactions with assistants. * * 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.SearchCompletionsToJSON = exports.SearchCompletionsFromJSONTyped = exports.SearchCompletionsFromJSON = exports.instanceOfSearchCompletions = exports.SearchCompletionsModelEnum = void 0; const runtime_1 = require("../runtime"); const MessageModel_1 = require("./MessageModel"); /** * @export */ exports.SearchCompletionsModelEnum = { Gpt4o: 'gpt-4o', Gpt41: 'gpt-4.1', O4Mini: 'o4-mini', Claude35Sonnet: 'claude-3-5-sonnet', Claude37Sonnet: 'claude-3-7-sonnet', Gemini25Pro: 'gemini-2.5-pro' }; /** * Check if a given object implements the SearchCompletions interface. */ function instanceOfSearchCompletions(value) { let isInstance = true; isInstance = isInstance && "messages" in value; return isInstance; } exports.instanceOfSearchCompletions = instanceOfSearchCompletions; function SearchCompletionsFromJSON(json) { return SearchCompletionsFromJSONTyped(json, false); } exports.SearchCompletionsFromJSON = SearchCompletionsFromJSON; function SearchCompletionsFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'messages': (json['messages'].map(MessageModel_1.MessageModelFromJSON)), 'stream': !(0, runtime_1.exists)(json, 'stream') ? undefined : json['stream'], 'model': !(0, runtime_1.exists)(json, 'model') ? undefined : json['model'], 'temperature': !(0, runtime_1.exists)(json, 'temperature') ? undefined : json['temperature'], 'filter': !(0, runtime_1.exists)(json, 'filter') ? undefined : json['filter'], }; } exports.SearchCompletionsFromJSONTyped = SearchCompletionsFromJSONTyped; function SearchCompletionsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'messages': (value.messages.map(MessageModel_1.MessageModelToJSON)), 'stream': value.stream, 'model': value.model, 'temperature': value.temperature, 'filter': value.filter, }; } exports.SearchCompletionsToJSON = SearchCompletionsToJSON; //# sourceMappingURL=SearchCompletions.js.map