File tree 1 file changed +13
-9
lines changed
packages/vertexai/src/methods
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import {
19
- EnhancedGenerateContentResponse ,
20
- GenerateContentRequest ,
21
- InferenceMode
22
- } from '../types' ;
18
+ import { GenerateContentRequest , InferenceMode } from '../types' ;
23
19
import { LanguageModelCreateOptions } from '../types/language-model' ;
24
20
25
21
/**
@@ -38,10 +34,18 @@ export class ChromeAdapter {
38
34
async generateContentOnDevice (
39
35
// eslint-disable-next-line @typescript-eslint/no-unused-vars
40
36
request : GenerateContentRequest
41
- ) : Promise < EnhancedGenerateContentResponse > {
37
+ ) : Promise < Response > {
42
38
return {
43
- text : ( ) => '' ,
44
- functionCalls : ( ) => undefined
45
- } ;
39
+ json : ( ) =>
40
+ Promise . resolve ( {
41
+ candidates : [
42
+ {
43
+ content : {
44
+ parts : [ { text : '' } ]
45
+ }
46
+ }
47
+ ]
48
+ } )
49
+ } as Response ;
46
50
}
47
51
}
You can’t perform that action at this time.
0 commit comments