Skip to content

Commit ad0851f

Browse files
authored
Merge pull request #64 from JigsawStack/update/embeddingv2
2 parents c6c9c35 + 8e1d526 commit ad0851f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const JigsawStack = (config?: BaseConfig) => {
4646
prediction: general.prediction,
4747
text_to_sql: general.text_to_sql,
4848
embedding: general.embedding,
49-
embeddingV2: general.embeddingV2,
49+
embedding_v2: general.embedding_v2,
5050
audio,
5151
vision: {
5252
vocr: createBoundMethod(vision, vision.vocr),

src/general/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class General {
2626
this.client = client;
2727
this.summary = this.summary.bind(this);
2828
this.embedding = this.embedding.bind(this);
29-
this.embeddingV2 = this.embeddingV2.bind(this);
29+
this.embedding_v2 = this.embedding_v2.bind(this);
3030
}
3131

3232
translate = {
@@ -88,9 +88,9 @@ class General {
8888
return await this.client.fetchJSS("/v1/embedding", "POST", params);
8989
}
9090

91-
embeddingV2(params: EmbeddingV2Params): Promise<EmbeddingV2Response>;
92-
embeddingV2(file: Blob | Buffer, params: Omit<EmbeddingV2Params, "url" | "file_store_key" | "file_content">): Promise<EmbeddingV2Response>;
93-
async embeddingV2(params: EmbeddingV2Params | Blob | Buffer, options?: EmbeddingV2Params): Promise<EmbeddingV2Response> {
91+
embedding_v2(params: EmbeddingV2Params): Promise<EmbeddingV2Response>;
92+
embedding_v2(file: Blob | Buffer, params: Omit<EmbeddingV2Params, "url" | "file_store_key" | "file_content">): Promise<EmbeddingV2Response>;
93+
async embedding_v2(params: EmbeddingV2Params | Blob | Buffer, options?: EmbeddingV2Params): Promise<EmbeddingV2Response> {
9494
if (params instanceof Blob || params instanceof Buffer) {
9595
const formData = createFileUploadFormData(params, options);
9696
return await this.client.fetchJSS("/v2/embedding", "POST", formData);

0 commit comments

Comments
 (0)