@@ -27,6 +27,7 @@ import {
27
27
GPT2_MEDIUM_COMPANIES_MODEL_NAME ,
28
28
GPT2_MEDIUM_HP_MODEL_NAME ,
29
29
GPT2_MEDIUM_LEGAL_MODEL_NAME ,
30
+ GPT2_MEDIUM_MODEL_NAME ,
30
31
GPT2_MEDIUM_RESEARCH_MODEL_NAME ,
31
32
HP_PROMPTS_TO_USE ,
32
33
LEGAL_PROMPTS_TO_USE ,
@@ -86,7 +87,7 @@ export class _MainComponent extends React.Component {
86
87
// ie. writeup.ai/legal will automatically use the legal text gen. models
87
88
const pathname = props . location . pathname ;
88
89
89
- let model_name = GPT2_LARGE_MODEL_NAME ;
90
+ let model_name = GPT2_MEDIUM_MODEL_NAME ;
90
91
let initValue = getInitialValue ( PROMPTS_TO_USE ) ;
91
92
// 45 words felt like a good number, 17 just loads way faster
92
93
// 25 to see how this works for the time being ..
@@ -441,7 +442,8 @@ export class _MainComponent extends React.Component {
441
442
// feels a little unfair, make sure to include this asterik so people
442
443
// don't get confused
443
444
// 500 was fine for higher traffic, now that traffic is less, try it at 700
444
- const text = this . state . editorValue . document . text . slice ( - 700 ) ;
445
+ // issues still happen at 700 (i think GPT2 large uses a lot of resources)
446
+ const text = this . state . editorValue . document . text . slice ( - 500 ) ;
445
447
446
448
const textIsBlank = text . trim ( ) . length === 0 ;
447
449
if ( textIsBlank ) {
@@ -894,6 +896,7 @@ export class _MainComponent extends React.Component {
894
896
} }
895
897
onChange = { this . onSelectChange }
896
898
>
899
+ < MenuItem value = { GPT2_MEDIUM_MODEL_NAME } > General</ MenuItem >
897
900
< MenuItem value = { GPT2_LARGE_MODEL_NAME } >
898
901
General (Advanced)
899
902
</ MenuItem >
0 commit comments