Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add dedicated icon for the GPT Subscription provider (#62009)
Danilo Lealf99da3a491b3
diff --git a/assets/icons/ai_open_ai_gpt_sub.svg b/assets/icons/ai_open_ai_gpt_sub.svgnew file mode 100644index 00000000000..49ebd96a6a2--- /dev/null+++ b/assets/icons/ai_open_ai_gpt_sub.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.25669 0.999943C8.27509 0.993825 9.24655 1.42125 9.9227 2.17279C11.4427 1.85079 12.9991 2.53518 13.7733 3.86518C14.159 4.5149 14.3171 5.26409 14.2372 5.99994H13.2967C13.3789 5.42185 13.265 4.8321 12.9686 4.32514C12.2353 3.06961 10.6088 2.63919 9.33676 3.36322L6.48032 4.98822C6.46926 4.99697 6.46284 5.01135 6.46372 5.02533V6.38568L9.91294 4.42084C10.0565 4.33818 10.2336 4.33823 10.3768 4.42084L13.1502 5.99994H11.2948L9.88364 5.19623C9.87034 5.19054 9.85459 5.19128 9.84262 5.19916L8.64926 5.87983L8.8602 5.99994H7.99985C6.89539 6.00004 5.99988 6.89547 5.99985 7.99994V9.34955L3.90219 8.15522C3.75815 8.07431 3.66897 7.92228 3.66977 7.75873V4.53803C3.66977 4.50828 3.67172 4.4654 3.67172 4.44135C3.08836 4.65262 2.59832 5.0599 2.28794 5.59174C1.55635 6.84647 1.99122 8.44936 3.26059 9.17475L5.99985 10.7363V11.6162C5.87564 11.6568 5.73827 11.6456 5.6229 11.579L2.7977 9.96869C2.77156 9.95382 2.73449 9.9311 2.71372 9.91889C2.60687 10.5231 2.7194 11.1466 3.0311 11.6777C3.6435 12.7209 4.87159 13.1902 5.99985 12.9023V13.8398C4.50443 14.1233 2.98758 13.4424 2.22641 12.1347C1.71174 11.2677 1.60096 10.2237 1.9227 9.27045C0.880739 8.13295 0.703328 6.46023 1.48325 5.13373C1.98739 4.26024 2.84863 3.64401 3.84653 3.44233C4.3245 1.9837 5.70306 0.996447 7.25669 0.999943ZM7.25766 1.91498C5.78932 1.9143 4.59839 3.08914 4.59751 4.53803V7.79193C4.59926 7.80578 4.60735 7.81796 4.61997 7.82416L5.8143 8.50483L5.81626 4.57611C5.81537 4.41216 5.90431 4.2606 6.04868 4.17963L8.87387 2.56928C8.89868 2.55441 8.93612 2.53379 8.95786 2.5224C8.48035 2.13046 7.8788 1.91498 7.25766 1.91498Z" fill="#DCE0E5"/>+<path d="M15 13.5C15 14.3284 14.3284 15 13.5 15H8C7.17157 15 6.5 14.3284 6.5 13.5V8C6.5 7.17157 7.17157 6.5 8 6.5H13.5C14.3284 6.5 15 7.17157 15 8V13.5ZM10.7109 7.80957C9.38579 7.80957 8.54108 8.4971 8.54102 9.58203C8.54102 10.4476 9.0418 10.9741 10.0605 11.1895L10.8389 11.3672C11.4352 11.4956 11.6836 11.6901 11.6836 12.0049C11.6835 12.3941 11.3646 12.6094 10.7725 12.6094C10.3543 12.6093 9.94398 12.435 9.60449 12.1162C9.37702 11.9137 9.20736 11.8389 9.00879 11.8389C8.71476 11.8389 8.47461 12.071 8.47461 12.4023C8.47461 12.6342 8.60653 12.8748 8.84668 13.1025C9.23178 13.4669 9.92369 13.6904 10.7021 13.6904C12.1185 13.6904 13.0254 12.9734 13.0254 11.8594C13.0252 11.0025 12.5163 10.4847 11.4648 10.2734L10.6777 10.1035C10.152 10 9.91132 9.78111 9.91113 9.4707C9.91113 9.11456 10.2264 8.88672 10.7275 8.88672C11.1539 8.8868 11.4895 9.05229 11.7793 9.37109C11.9532 9.53664 12.1316 9.61523 12.3096 9.61523C12.6282 9.61507 12.8438 9.40766 12.8438 9.10547C12.8436 8.85301 12.7149 8.60435 12.4707 8.38086C12.0897 8.02071 11.4354 7.80962 10.7109 7.80957Z" fill="#DCE0E5"/>+</svg>diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rsindex d1005517d77..ac48d8343ec 100644--- a/crates/icons/src/icons.rs+++ b/crates/icons/src/icons.rs@@ -23,6 +23,7 @@ pub enum IconName {AiOllama,AiOpenAi,AiOpenAiCompat,+ AiOpenAiGptSub,AiOpenCode,AiOpenRouter,AiVercel,diff --git a/crates/language_models/src/provider/openai_subscribed.rs b/crates/language_models/src/provider/openai_subscribed.rsindex f38d8873247..651c281142a 100644--- a/crates/language_models/src/provider/openai_subscribed.rs+++ b/crates/language_models/src/provider/openai_subscribed.rs@@ -48,7 +48,7 @@ impl LanguageModelProvider for OpenAiSubscribedProvider {}fn icon(&self) -> IconOrSvg {- IconOrSvg::Icon(IconName::AiOpenAi)+ IconOrSvg::Icon(IconName::AiOpenAiGptSub)}fn default_model(&self, cx: &App) -> Option<Arc<dyn LanguageModel>> {