File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313// limitations under the License.
1414
1515import { Injectable } from "@angular/core" ;
16- import { GenerativeModel , GoogleGenerativeAI } from "@google/generative-ai" ;
16+ import { FunctionCallingMode , GenerativeModel , GoogleGenerativeAI } from "@google/generative-ai" ;
1717import { DatabaseService } from "./database.service" ;
1818import { functionDeclarations } from "./gemini-function-declarations" ;
1919import { LogService } from "./log.service" ;
@@ -70,8 +70,8 @@ export class GeminiService {
7070 this . model . toolConfig = {
7171 functionCallingConfig : {
7272 // Require function calling response.
73- // mode: FunctionCallingMode.ANY,
74- // allowedFunctionNames: ["createTable", "alterTable"],
73+ mode : FunctionCallingMode . ANY ,
74+ allowedFunctionNames : [ "createTable" , "alterTable" ] ,
7575 }
7676 } ;
7777
You can’t perform that action at this time.
0 commit comments