File tree 1 file changed +1
-21
lines changed
packages/vertexai/src/methods
1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ import {
20
20
GenerateContentRequest ,
21
21
InferenceMode ,
22
22
Part ,
23
- Role ,
24
- TextPart
23
+ Role
25
24
} from '../types' ;
26
25
import {
27
26
Availability ,
@@ -127,25 +126,6 @@ export class ChromeAdapter {
127
126
}
128
127
}
129
128
130
- if ( request . systemInstruction ) {
131
- const systemContent = request . systemInstruction as Content ;
132
- // Returns false if the role can't be represented on-device.
133
- if ( systemContent . role && systemContent . role === 'function' ) {
134
- return false ;
135
- }
136
-
137
- // Returns false if the system prompt is multi-part.
138
- if ( systemContent . parts && systemContent . parts . length > 1 ) {
139
- return false ;
140
- }
141
-
142
- // Returns false if the system prompt isn't text.
143
- const systemText = request . systemInstruction as TextPart ;
144
- if ( ! systemText . text ) {
145
- return false ;
146
- }
147
- }
148
-
149
129
return true ;
150
130
}
151
131
private download ( ) : void {
You can’t perform that action at this time.
0 commit comments