44 Commits
Author SHA1 Message Date
Father Bot b0ca129e75 Remove legacy gpt-3.5-turbo and gpt-4 models
Drop the remaining old models from the menu and config. The lineup is
now gpt-4o-mini (default), gpt-5.5, gpt-4o and the Claude models.
2026-05-20 12:09:55 +03:00
Father Bot 6eead18619 Update example config comments for gpt-image-1
gpt-image-1 supports multiple images per request and the sizes
1024x1024, 1536x1024, 1024x1536 and auto. Update the comments
accordingly.
2026-05-11 13:21:07 +03:00
Father Bot 0dba82f04f Replace dalle-3 with gpt-image-1 in models.yml
Swap the image model entry to gpt-image-1 ($0.042 per 1024x1024
medium-quality image) so /balance reflects the new model.
2026-05-08 20:33:39 +03:00
Father Bot 169406c377 Replace dalle-2 with dall-e-3 pricing in models.yml
Update the image model entry to dalle-3 at $0.04 per 1024x1024 image
so /balance reflects DALL-E 3 costs.
2026-04-14 09:50:40 +03:00
Father Bot f7459df1ad Default image size to 1024x1024 for DALL-E 3
512x512 is not a valid DALL-E 3 size. Default to 1024x1024 and update
the example config to list the supported DALL-E 3 sizes and note the
one-image-per-request limit.
2026-04-11 19:31:07 +03:00
Father Bot 04174251b5 Update gpt-4o pricing to current rates
gpt-4o was priced at its launch rate (0.005/0.015). OpenAI later cut
it to $2.50 / $10 per 1M tokens; update to 0.0025/0.01 so /balance
reflects current cost.
2026-04-05 16:42:21 +03:00
Father Bot c828549d7a Remove deprecated models from the menu
Drop gpt-3.5-turbo-16k, gpt-4-1106-preview and gpt-4-vision-preview
from available_text_models and their info blocks. All three are
deprecated/retired by OpenAI; gpt-4o and gpt-4o-mini cover their use
cases (including vision).
2026-04-02 10:14:03 +03:00
Father Bot e97a0819c1 Flag vision-capable models in models.yml
Add 'vision: true' to models that can read images: gpt-4o,
gpt-4o-mini, gpt-4-vision-preview, gpt-5.5 and the Claude models.
This lets the bot decide vision support from config instead of
hardcoded model names.
2026-03-25 16:20:33 +03:00
Father Bot 2ace648aa9 Add Anthropic Claude models via OpenRouter
Add Claude Opus 4.8, Claude Sonnet and Claude Haiku as selectable
chat models, routed through OpenRouter (provider: openrouter). Slugs
and pricing taken from the OpenRouter model list. Requires
openrouter_api_key to be set.
2026-03-15 10:28:36 +03:00
Father Bot dbe426775f Add OpenAI gpt-5.5 model (via OpenRouter)
Add OpenAI's latest flagship gpt-5.5 as a selectable model, routed
through OpenRouter (provider: openrouter, slug openai/gpt-5.5).
Pricing taken from the OpenRouter model list.
2026-03-09 17:14:53 +03:00
Father Bot 8b42181274 Add OpenRouter provider support
Introduce an optional OpenRouter client (OpenAI-compatible) alongside
the OpenAI one. Models can declare 'provider: openrouter' in
models.yml; ChatGPT now selects the matching client per model via
_get_client_for_model and routes chat completions through it. This
unlocks non-OpenAI models (e.g. Claude) through a single SDK.

Adds openrouter_api_key / openrouter_api_base config options.
2026-03-03 12:40:21 +03:00
Father Bot 6b90a74567 Remove text-davinci-003 from models config
OpenAI shut down the legacy text-davinci-003 completions model in
early 2024, so it can no longer be used. Drop it from the available
models list and remove its info block.
2026-02-11 18:42:55 +03:00
Father Bot bdad62174d Default new users to gpt-4o-mini instead of gpt-3.5-turbo
The default model is taken from available_text_models[0] (used by
Database.add_new_user and the registration fallback). Move
gpt-4o-mini to the front so new users start on it; gpt-3.5-turbo is
outdated, while gpt-4o-mini is cheaper, smarter and supports vision.
This also makes it the first option in the /settings menu.
2026-01-06 11:30:18 +03:00
Father Bot 41a13ee5c9 Drop dead price keys from config.example.yml
chatgpt_price_per_1000_tokens, gpt_price_per_1000_tokens and
whisper_price_per_1_min are not read by config.py; pricing is defined
per model in config/models.yml. Remove them from the example to avoid
implying they have any effect.
2025-12-28 19:40:33 +03:00
Father Bot cb4f55850a Fix typo in gpt-4-vision description (capabilties -> capabilities) 2025-12-13 17:41:55 +03:00
Father Bot 43aa46a872 Add gpt-4o-mini model support
Wire gpt-4o-mini through the bot: register it in models.yml
(available list + pricing/scores entry) and add it to the model
sets in openai_utils (chat, streaming, vision and token counting).
gpt-4o-mini is cheaper and smarter than gpt-3.5-turbo and supports
images, so it is a good default-grade option. Addresses #474.
2025-12-05 19:05:44 +03:00
Father Bot 148b3b8268 Normalize model score labels to capitalized form
gpt-4-1106-preview, gpt-4-vision-preview and gpt-4o used lowercase
score keys (smart/fast/cheap) while the rest used capitalized ones.
These keys are shown verbatim as labels in /settings, so normalize
them for consistent display.
2025-12-04 11:32:08 +03:00
Father Bot 7416a7edd6 Fix gpt-4o scores: it is faster and cheaper than gpt-4
gpt-4o was scored fast:2 cheap:2 (same as plain gpt-4), which is
misleading. Bump to fast:4 cheap:4 to reflect its actual profile.
2025-12-02 16:47:21 +03:00
Father Bot 3aab56a21a Fix incorrect gpt-4o pricing in models.yml
gpt-4o was priced at gpt-4 rates (0.03/0.06). Correct to actual
0.005/0.015 per 1k tokens so the /balance report is accurate.
2025-12-01 10:14:03 +03:00
pyranota fff2839327 Fix not showing GPT-4o in settings 2024-05-23 18:49:59 +02:00
pyranota 752f38b348 Add support for GPT-4o 2024-05-23 17:45:28 +02:00
OlegGoless 2aa76490fd vision 2024-04-02 14:44:15 +02:00
OlegGoless 3b8b0b2a52 vision 2024-04-02 14:43:04 +02:00
Karim Iskakov 61b8dbd0ce Add GPT-4 Turbo 2023-11-15 17:45:57 +03:00
Dichi Al FaridiandGitHub acd4cab782 Make the DALLe image size configurable (#365) 2023-09-13 13:17:21 +03:00
Karim Iskakov 0c09f1aaca Add OpenAI API Base to config 2023-08-01 18:41:31 +03:00
Karim Iskakov c77501c3d9 Remove deprecated "use_chatgpt_api" parameter 2023-07-18 13:43:44 +03:00
a4bd06ac9e Allow channels (#312)
Co-authored-by: Flop <flop@loona.app>
2023-06-20 11:52:57 +03:00
Shahmir VarqhaandGitHub e42798c0ce fixed grammar and spelling (#301) 2023-06-20 11:47:58 +03:00
maccagnitandGitHub 533e6705c8 Added GPT-3.5 16K chat functionality (#306) 2023-06-20 11:47:19 +03:00
Karim Iskakov a014061917 Update chat_modes.yml 2023-04-21 11:11:01 -05:00
Karim IskakovandGitHub ada0f34e54 🔥 Add 10 new chat modes + Updated chat mode menu with pagination 2023-04-21 14:02:50 +03:00
Karim Iskakov 08e9c065ea Add return_n_generated_images to config 2023-04-21 05:24:19 -05:00
Karim IskakovandGitHub e421be1634 DALLE 2 2023-04-21 12:37:06 +03:00
Karim IskakovandGitHub 7b6a50998c Remove trailing whitespaces 2023-03-29 14:42:01 +07:00
Karim IskakovandGitHub a4b5eb36e1 GPT-4 support 2023-03-22 23:58:48 +03:00
Karim IskakovandGitHub 1ba09de2b9 Add message streaming
* Add message streaming
* Update README.md
2023-03-15 19:20:43 +03:00
Clément SauvageandGitHub 76da87bb31 Add support for user ids in config
* Add support for user ids

* Allow both usernames and user ids at the same time
2023-03-14 15:22:06 +03:00
Karim Iskakov 2248a2bd92 Fix typo 2023-03-09 08:42:08 -06:00
Karim IskakovandGitHub 15e4ec513a Separate config for Chat Modes 2023-03-09 14:51:43 +03:00
Karim IskakovandGitHub 0610ea29cd Voice message recognition 2023-03-08 16:49:22 +03:00
0779808db3 Add support of ChatGPT API (#70)
Co-authored-by: Karim Iskakov <kar.iskakov@gmail.com>
2023-03-02 21:31:54 +03:00
akynazh 1ba8cfc4bd fix config.env bug 2023-02-15 21:53:34 +08:00
Karim Iskakov fdb91a8da6 Move to MongoDB 2023-01-19 14:56:02 -06:00