@@ -5,7 +5,10 @@ import { Model } from "../..";
55 *
66 * Reference: https://platform.openai.com/docs/api-reference/embeddings
77 */
8- export class EmbeddingsModel extends Model < EmbeddingsInput , EmbeddingsOutput > {
8+ export class OpenAIEmbeddingsModel extends Model <
9+ OpenAIEmbeddingsInput ,
10+ OpenAIEmbeddingsOutput
11+ > {
912 /**
1013 * Creates an input object for the OpenAI Embeddings API.
1114 *
@@ -20,7 +23,7 @@ export class EmbeddingsModel extends Model<EmbeddingsInput, EmbeddingsOutput> {
2023 * @remarks
2124 * The input content must not exceed the maximum token limit of the model.
2225 */
23- createInput < T > ( content : T ) : EmbeddingsInput {
26+ createInput < T > ( content : T ) : OpenAIEmbeddingsInput {
2427 const model = this . info . fullName ;
2528
2629 switch ( idof < T > ( ) ) {
@@ -53,7 +56,7 @@ export class EmbeddingsModel extends Model<EmbeddingsInput, EmbeddingsOutput> {
5356 * The input object for the OpenAI Embeddings API.
5457 */
5558@json
56- class EmbeddingsInput {
59+ class OpenAIEmbeddingsInput {
5760 /**
5861 * The name of the model to use for the embeddings.
5962 * Must be the exact string expected by the model provider.
@@ -97,7 +100,7 @@ class EmbeddingsInput {
97100 * The input object for the OpenAI Embeddings API.
98101 */
99102@json
100- class TypedEmbeddingsInput < T > extends EmbeddingsInput {
103+ class TypedEmbeddingsInput < T > extends OpenAIEmbeddingsInput {
101104 /**
102105 * The input content to vectorize.
103106 */
@@ -108,7 +111,7 @@ class TypedEmbeddingsInput<T> extends EmbeddingsInput {
108111 * The output object for the OpenAI Embeddings API.
109112 */
110113@json
111- class EmbeddingsOutput {
114+ class OpenAIEmbeddingsOutput {
112115 /**
113116 * The name of the output object type returned by the API.
114117 * Always `"list"`.
0 commit comments