@@ -27,7 +27,7 @@ export class ExtractionConfig {
2727 url ?: string = null ;
2828 charset ?: string = null ;
2929 template ?: string ; // saved template name
30- epehemeral_template ?: object ; // epehemeraly declared json template
30+ ephemeral_template ?: object ; // ephemeraly declared json template
3131 extraction_prompt ?: string = null ;
3232 extraction_model ?: string = null ;
3333 is_document_compressed ?: boolean = null ;
@@ -40,7 +40,7 @@ export class ExtractionConfig {
4040 url ?: string ;
4141 charset ?: string ;
4242 template ?: string ; // saved template name
43- epehemeral_template ?: object ; // epehemeraly declared json template
43+ ephemeral_template ?: object ; // ephemeraly declared json template
4444 extraction_prompt ?: string ;
4545 extraction_model ?: string ;
4646 is_document_compressed ?: boolean ;
@@ -52,7 +52,7 @@ export class ExtractionConfig {
5252 this . url = options . url ;
5353 this . charset = options . charset ;
5454 this . template = options . template ;
55- this . epehemeral_template = options . epehemeral_template ;
55+ this . ephemeral_template = options . ephemeral_template ;
5656 this . extraction_prompt = options . extraction_prompt ;
5757 this . extraction_model = options . extraction_model ;
5858 this . is_document_compressed = options . is_document_compressed ;
@@ -75,18 +75,18 @@ export class ExtractionConfig {
7575 params . charset = this . charset ;
7676 }
7777
78- if ( this . template && this . epehemeral_template ) {
78+ if ( this . template && this . ephemeral_template ) {
7979 throw new ExtractionConfigError (
80- 'You cannot pass both parameters template and epehemeral_template . You must choose' ,
80+ 'You cannot pass both parameters template and ephemeral_template . You must choose' ,
8181 ) ;
8282 }
8383
8484 if ( this . template ) {
8585 params . extraction_template = this . template ;
8686 }
8787
88- if ( this . epehemeral_template ) {
89- params . extraction_template = 'ephemeral:' + urlsafe_b64encode ( JSON . stringify ( this . epehemeral_template ) ) ;
88+ if ( this . ephemeral_template ) {
89+ params . extraction_template = 'ephemeral:' + urlsafe_b64encode ( JSON . stringify ( this . ephemeral_template ) ) ;
9090 }
9191
9292 if ( this . extraction_prompt ) {
0 commit comments