From 98cc3e86bc4d39f546dad9969faef94f83a3a039 Mon Sep 17 00:00:00 2001 From: ned Date: Tue, 14 May 2024 16:07:12 +0200 Subject: [PATCH] Various updates --- README.md | 3 ++- bot/plugins/iplocation.py | 3 ++- translations.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2e9230d1..61b7a41a 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ A [Telegram bot](https://core.telegram.org/bots/api) that integrates with OpenAI - [x] GPT-4 support - If you have access to the GPT-4 API, simply change the `OPENAI_MODEL` parameter to `gpt-4` - [x] Localized bot language - - Available languages :brazil: :cn: :finland: :de: :indonesia: :iran: :it: :malaysia: :netherlands: :poland: :ru: :saudi_arabia: :es: :taiwan: :tr: :ukraine: :gb: :uzbekistan: :vietnam: + - Available languages :brazil: :cn: :finland: :de: :indonesia: :iran: :it: :malaysia: :netherlands: :poland: :ru: :saudi_arabia: :es: :taiwan: :tr: :ukraine: :gb: :uzbekistan: :vietnam: :israel: - [x] Improved inline queries support for group and private chats - by [@bugfloyd](https://github.com/bugfloyd) - To use this feature, enable inline queries for your bot in BotFather via the `/setinline` [command](https://core.telegram.org/bots/inline) - [x] Support *new models* [announced on June 13, 2023](https://openai.com/blog/function-calling-and-other-api-updates) @@ -40,6 +40,7 @@ A [Telegram bot](https://core.telegram.org/bots/api) that integrates with OpenAI - [x] (NEW!) Support GPT-4 Turbo and DALL·E 3 [announced on November 6, 2023](https://openai.com/blog/new-models-and-developer-products-announced-at-devday) - by [@AlexHTW](https://github.com/AlexHTW) - [x] (NEW!) Text-to-speech support [announced on November 6, 2023](https://platform.openai.com/docs/guides/text-to-speech) - by [@gilcu3](https://github.com/gilcu3) - [x] (NEW!) Vision support [announced on November 6, 2023](https://platform.openai.com/docs/guides/vision) - by [@gilcu3](https://github.com/gilcu3) +- [x] (NEW!) GPT-4o model support [announced on May 12, 2024](https://openai.com/index/hello-gpt-4o/) - by [@err09r](https://github.com/err09r) ## Additional features - help needed! If you'd like to help, check out the [issues](https://github.com/n3d1117/chatgpt-telegram-bot/issues) section and contribute! diff --git a/bot/plugins/iplocation.py b/bot/plugins/iplocation.py index 6933ef86..a851b526 100644 --- a/bot/plugins/iplocation.py +++ b/bot/plugins/iplocation.py @@ -3,6 +3,7 @@ from .plugin import Plugin + class IpLocationPlugin(Plugin): """ A plugin to get geolocation and other information for a given IP address @@ -13,7 +14,7 @@ def get_source_name(self) -> str: def get_spec(self) -> [Dict]: return [{ - "name": "iplocaion", + "name": "iplocation", "description": "Get information for an IP address using the IP.FM API.", "parameters": { "type": "object", diff --git a/translations.json b/translations.json index d4e2d58a..e13198ba 100644 --- a/translations.json +++ b/translations.json @@ -341,7 +341,7 @@ "ask_chatgpt": "שאל את ChatGPT", "loading": "טוען...", "function_unavailable_in_inline_mode": "הפונקציה לא זמינה במצב inline" - } + }, "id": { "help_description": "Menampilkan pesan bantuan", "reset_description": "Merestart percakapan. Opsional memasukkan instruksi tingkat tinggi (misalnya /reset Anda adalah asisten yang membantu)",