package api type EmbedRequest struct { // Text should be shorter than ~8000 tokens. Text string `json:"text"` // Model is an embedding model name. // These are hard-coded in //funky/builtins. // A good choice is "openai:text-embedding-3-small". Model string `json:"model"` // Dims is the number of vector dimensions to return. // A good chioce is 1536 for openai:text-embedding-3-small. Dims int `json:"dims"` // FullPath returns a sequence of vectors, one per prefix of Text. // Because of this possibility, /embed/do always returns a 2D array. FullPath bool `json:"full_path"` }