Class CreateEmbeddingRequest

Classe CreateEmbeddingRequest

Rappresenta una richiesta per l’endpoint Crea Embeddings.

public class CreateEmbeddingRequest

Costruttori

NomeDescrizione
CreateEmbeddingRequest()Il costruttore predefinito.

Proprietà

NomeDescrizione
Dimensions { get; set; }Ottiene o imposta il numero di dimensioni che le embeddings di output risultanti devono avere. Supportato solo nei modelli text-embedding-3 e successivi.
EncodingFormat { get; set; }Ottiene o imposta il formato per restituire le embeddings. Può essere float o base64.
Input { get; set; }Ottiene o imposta il testo di input da incorporare, codificato come stringa o array di token. Per incorporare più input in una singola richiesta, passare un array di stringhe o un array di array di token. L’input non deve superare il numero massimo di token di input per il modello (8192 token per text-embedding-ada-002), non può essere una stringa vuota e qualsiasi array deve avere 2048 dimensioni o meno.
Model { get; set; }Ottiene o imposta il modello per generare l’embedding.
User { get; set; }Ottiene o imposta un identificatore unico che rappresenta il tuo utente finale, che può aiutare OpenAI a monitorare e rilevare abusi.

Vedi Anche