pinecone_sdk/openapi/models/
embed_request_parameters.rs

1/*
2 * Pinecone Control Plane API
3 *
4 * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors.
5 *
6 * The version of the OpenAPI document: 2024-07
7 * Contact: support@pinecone.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::openapi::models;
12use serde::{Deserialize, Serialize};
13
14/// EmbedRequestParameters : Model-specific parameters.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EmbedRequestParameters {
17    /// Common property used to distinguish between types of data.
18    #[serde(rename = "input_type", skip_serializing_if = "Option::is_none")]
19    pub input_type: Option<String>,
20    /// How to handle inputs longer than those supported by the model. If NONE, when the input exceeds the maximum input token length an error will be returned.
21    #[serde(rename = "truncate", skip_serializing_if = "Option::is_none")]
22    pub truncate: Option<String>,
23}
24
25impl EmbedRequestParameters {
26    /// Model-specific parameters.
27    pub fn new() -> EmbedRequestParameters {
28        EmbedRequestParameters {
29            input_type: None,
30            truncate: None,
31        }
32    }
33}
34