branch: elpa/gptel commit f30f117400b9a7396081e738f54fd18a452d970d Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel: Add support for GPT 4.1 models * gptel.el (gptel--openai-models): Add support for OpenAI models gpt-4.1, gpt-4.1-mini and gpt-4.1-nano. * NEWS (New models and backends): Mention new models. --- NEWS | 2 ++ gptel.el | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/NEWS b/NEWS index 0576bbf1b7..5957ebc48f 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ - Add support for ~gemini-2.5-pro-exp-03-25~. +- Add support for ~gpt-4.1~, ~gpt-4.1-mini~ and ~gpt-4.1-nano~. + ** New features and UI changes - The new option ~gptel-curl-extra-args~ can be used to specify extra diff --git a/gptel.el b/gptel.el index c0d1635068..66da8a2151 100644 --- a/gptel.el +++ b/gptel.el @@ -538,6 +538,30 @@ the same as t." :input-cost 0.15 :output-cost 0.60 :cutoff-date "2023-10") + (gpt-4.1 + :description "Flagship model for complex tasks" + :capabilities (media tool-use json url) + :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp") + :context-window 1024 + :input-cost 2.0 + :output-cost 8.0 + :cutoff-date "2024-05") + (gpt-4.1-mini + :description "Balance between intelligence, speed and cost" + :capabilities (media tool-use json url) + :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp") + :context-window 1024 + :input-cost 0.4 + :output-cost 1.6 + :cutoff-date "2024-05") + (gpt-4.1-nano + :description "Fastest, most cost-effective GPT-4.1 model" + :capabilities (media tool-use json url) + :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp") + :context-window 1024 + :input-cost 0.10 + :output-cost 0.40 + :cutoff-date "2024-05") (gpt-4-turbo :description "Previous high-intelligence model" :capabilities (media tool-use url)