From be9a428915b42c8825fa804f1cf7bcb9fab99161 Mon Sep 17 00:00:00 2001 From: jarodise Date: Fri, 13 Dec 2024 18:42:34 +0800 Subject: [PATCH] update configuration.lua --- .gitignore | 2 -- configuration.lua | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 configuration.lua diff --git a/.gitignore b/.gitignore index 5fb062f..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +0,0 @@ -/api_key.lua -/configuration.lua \ No newline at end of file diff --git a/configuration.lua b/configuration.lua new file mode 100644 index 0000000..ad60139 --- /dev/null +++ b/configuration.lua @@ -0,0 +1,20 @@ +local CONFIGURATION = { + -- Replace with your actual API key + api_key = "AIzaSyCmmdUR1k_fQOZYm0-Wopz54NdTeHU4icU", + + -- Replace with your choice of model + model = "gemini-2.0-flash-exp", + + -- API endpoint for Gemini (with :generateContent) + api_endpoint = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:generateContent", + + -- Default system prompt used when asking ChatGPT a question + -- It can be overridden by setting a custom prompt in the plugin settings + prompt1 = "translate to Spanish.", + + -- Default system prompt used when asking ChatGPT a question + -- It can be overridden by setting a custom prompt in the plugin settings + prompt2 = "translate to Chinese.", +} + +return CONFIGURATION