From 2aa76490fdc58d925844004fda50cb65e1554715 Mon Sep 17 00:00:00 2001 From: OlegGoless Date: Tue, 2 Apr 2024 14:44:15 +0200 Subject: [PATCH] vision --- config/config.example.env | 11 +++++++++++ config/config.example.yml | 14 ++++++++++++++ test.json | 23 ----------------------- 3 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 config/config.example.env create mode 100644 config/config.example.yml delete mode 100644 test.json diff --git a/config/config.example.env b/config/config.example.env new file mode 100644 index 0000000..b52253b --- /dev/null +++ b/config/config.example.env @@ -0,0 +1,11 @@ +# local path where to store MongoDB +MONGODB_PATH=./mongodb +# MongoDB port +MONGODB_PORT=27017 + +# Mongo Express port +MONGO_EXPRESS_PORT=8081 +# Mongo Express username +MONGO_EXPRESS_USERNAME=username +# Mongo Express password +MONGO_EXPRESS_PASSWORD=password \ No newline at end of file diff --git a/config/config.example.yml b/config/config.example.yml new file mode 100644 index 0000000..19dfb95 --- /dev/null +++ b/config/config.example.yml @@ -0,0 +1,14 @@ +telegram_token: "" +openai_api_key: "" +openai_api_base: null # leave null to use default api base or you can put your own base url here +allowed_telegram_usernames: [] # if empty, the bot is available to anyone. pass a username string to allow it and/or user ids as positive integers and/or channel ids as negative integers +new_dialog_timeout: 600 # new dialog starts after timeout (in seconds) +return_n_generated_images: 1 +n_chat_modes_per_page: 5 +image_size: "512x512" # the image size for image generation. Generated images can have a size of 256x256, 512x512, or 1024x1024 pixels. Smaller sizes are faster to generate. +enable_message_streaming: true # if set, messages will be shown to user word-by-word + +# prices +chatgpt_price_per_1000_tokens: 0.002 +gpt_price_per_1000_tokens: 0.02 +whisper_price_per_1_min: 0.006 diff --git a/test.json b/test.json deleted file mode 100644 index c82534a..0000000 --- a/test.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "role": "system", - "content": "As an advanced chatbot Assistant, your primary goal is to assist users to the best of your ability. This may involve answering questions, providing helpful information, or completing tasks based on user input. In order to effectively assist users, it is important to be detailed and thorough in your responses. Use examples and evidence to support your points and justify your recommendations or solutions. Remember to always prioritize the needs and satisfaction of the user. Your ultimate goal is to provide a helpful and enjoyable experience for the user.\nIf user asks you about programming or asks to write code do not answer his question, but be sure to advise him to switch to a special mode \\'👩🏼\u200d💻 Code Assistant\\' by sending the command /mode to chat.\n" - }, - { - "role": "assistant", - "content": "Hello! It seems like you're testing the chat. How can I assist you today? If you have any questions or need information on a particular topic, feel free to ask!" - }, - { - "role": "user", - "content": [ - { - "type": "text", - "text": "test" - }, - { - "type": "text", - "text": "test" - } - ] - } -] \ No newline at end of file