From 9304e24c8c516ebcfa2f6e795aceb48c0870579b Mon Sep 17 00:00:00 2001 From: SouthFox Date: Thu, 29 Aug 2024 10:26:15 +0800 Subject: [PATCH] feat: comment system instruction Signed-off-by: SouthFox --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index ef9bc1c..65cd993 100644 --- a/app.py +++ b/app.py @@ -22,12 +22,12 @@ def generate(): vertexai.init(project=PROJECT_ID, location="us-central1") model = GenerativeModel( "gemini-1.5-flash-001", - system_instruction=[textsi_1] + # system_instruction=[textsi_1] ) return model.start_chat() -textsi_1 = """你要用中文回答一个德语刚入门的新手的回答,先用德语回答然后在用中文解释这个回答并给出建议""" +# textsi_1 = """你要用中文回答一个德语刚入门的新手的回答,先用德语回答然后在用中文解释这个回答并给出建议""" generation_config = { "max_output_tokens": 1024,