File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) ,
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments