mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #199] [MERGED] feat(openai): Support o1 and o3-mini models with compatibility fixes #1174
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/199
Author: @takatea
Created: 2/11/2025
Status: ✅ Merged
Merged: 2/12/2025
Merged by: @Yeuoly
Base:
main← Head:support-o1-and-o3-mini-models📝 Commits (7)
7d3dec3feat(openai): add support for o1 and o3-mini models546cfaachore(openai): update the dependcy versionf2ee7eachore(openai): add .env.samplea3afa03fix(openai): add compatibility for o1/o3 series modelscfc73defeat(openai): Add block-as-stream support for o1 models331df23docs(openai): update URL for token calculation NotImplementedErrora19444cchore(openai): bump openai dependency📊 Changes
8 files changed (+249 additions, -8 deletions)
View changed files
➕
models/openai/.env.example(+4 -0)📝
models/openai/manifest.yaml(+1 -1)📝
models/openai/models/llm/_position.yaml(+6 -0)📝
models/openai/models/llm/llm.py(+95 -5)➕
models/openai/models/llm/o1.yaml(+49 -0)➕
models/openai/models/llm/o3-mini-2025-01-31.yaml(+46 -0)➕
models/openai/models/llm/o3-mini.yaml(+46 -0)📝
models/openai/requirements.txt(+2 -2)📄 Description
Summary:
Help Wanted:
The changes have been verified with o1-mini, o1-mini-2024-09-12 and o1-preview.
Since I couldn't verify o1 and o3-mini models with my Tier 1 access, it would be great if someone with Tier 3 or higher access could check these models as well...!
Description:
Port compatibility handling from langgenius/dify@0.15.3 to support following o1 series and o3-mini models.
Notes:
Screenshots
Supplemental error details:
The same error occurred in both Chatbot and Agent implementations.
Reference using gpt-4o-mini
Ref
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.