[PR #409] [MERGED] feat(azure_openai): add o1 base model, support reasoning_effort, and fix minor issues #1348

Closed
opened 2026-02-16 10:22:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/409
Author: @kurokobo
Created: 3/9/2025
Status: Merged
Merged: 3/10/2025
Merged by: @crazywoola

Base: mainHead: aoai


📝 Commits (8)

  • 04059c5 fix: bump the version of the dependent modules
  • 2d97bdd feat: add latest preview api
  • fd6dacb fix: update price for o1-mini
  • 7e9de9c fix: correct num tokens for o3-mini
  • 6cd9d09 feat: support function calls for o3-mini
  • 5e97788 feat: add o1 model
  • 6df005a feat: add support for reasoning_effort for o1 and o3-mini
  • 85aaad1 feat: bump plugin version

📊 Changes

5 files changed (+93 additions, -9 deletions)

View changed files

📝 models/azure_openai/manifest.yaml (+1 -1)
📝 models/azure_openai/models/constants.py (+79 -4)
📝 models/azure_openai/models/llm/llm.py (+1 -1)
📝 models/azure_openai/provider/azure_openai.yaml (+9 -0)
📝 models/azure_openai/requirements.txt (+3 -3)

📄 Description

This PR changes following:

Closes #404, closes #408

I understand that multiple topics should not be mixed in a single PR, sorry for this, but since these were many small fixes, I have consolidated them.
If everything should really be in separate PRs, I can split them as the commits are already separated. Please let me know.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/409 **Author:** [@kurokobo](https://github.com/kurokobo) **Created:** 3/9/2025 **Status:** ✅ Merged **Merged:** 3/10/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `aoai` --- ### 📝 Commits (8) - [`04059c5`](https://github.com/langgenius/dify-official-plugins/commit/04059c5b9b0085bfd74c843e6252a744bc33e665) fix: bump the version of the dependent modules - [`2d97bdd`](https://github.com/langgenius/dify-official-plugins/commit/2d97bdd6723df4dca2747c7a5ee13d6e72b7c8c9) feat: add latest preview api - [`fd6dacb`](https://github.com/langgenius/dify-official-plugins/commit/fd6dacbeab0724a81d9c1bf971d778793c38c6b5) fix: update price for o1-mini - [`7e9de9c`](https://github.com/langgenius/dify-official-plugins/commit/7e9de9cb5b77b640af00326a44a1a7408ce9d675) fix: correct num tokens for o3-mini - [`6cd9d09`](https://github.com/langgenius/dify-official-plugins/commit/6cd9d090be52b3068f33cc4ce534f524da6047bf) feat: support function calls for o3-mini - [`5e97788`](https://github.com/langgenius/dify-official-plugins/commit/5e977880cb7ed8fbd8e3cf079946c3c9e9f47bd4) feat: add o1 model - [`6df005a`](https://github.com/langgenius/dify-official-plugins/commit/6df005adbda6ba8d174370a0511839f6a64d234c) feat: add support for reasoning_effort for o1 and o3-mini - [`85aaad1`](https://github.com/langgenius/dify-official-plugins/commit/85aaad1e894d357b035393941e2ee1c60a66a8d5) feat: bump plugin version ### 📊 Changes **5 files changed** (+93 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `models/azure_openai/manifest.yaml` (+1 -1) 📝 `models/azure_openai/models/constants.py` (+79 -4) 📝 `models/azure_openai/models/llm/llm.py` (+1 -1) 📝 `models/azure_openai/provider/azure_openai.yaml` (+9 -0) 📝 `models/azure_openai/requirements.txt` (+3 -3) </details> ### 📄 Description This PR changes following: - ✅ Add the latest API version; `2025-01-01-preview` - ✅ Correct price table for `o1-mini` - https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/ - $1.10 for Input and $4.40 for Output, instead of $3.00 for Input and $12.00 for Outpu - ✅ Correct context window for `o3-mini` - https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/reasoning - 200,000 for Input and 100,000 for Output, instead of 128,000 for Input and 65,535 for Output - ✅ Add support of Function Calling for `o3-mini` - ✅ Add new base model; `o1` - ✅ Add parameter `reasoning_effort` for `o3-mini` Closes #404, closes #408 I understand that multiple topics should not be mixed in a single PR, sorry for this, but since these were many small fixes, I have consolidated them. If everything should really be in separate PRs, I can split them as the commits are already separated. Please let me know. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:22:41 -05:00
yindo closed this issue 2026-02-16 10:22:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1348