mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #505] [MERGED] fix(azure_openai): support streaming for o3 based models #1411
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/505
Author: @kurokobo
Created: 3/19/2025
Status: ✅ Merged
Merged: 3/20/2025
Merged by: @crazywoola
Base:
main← Head:aoai📝 Commits (5)
6678275fix: use base_model_name instead of model to handle specific cases for specific modelsf3b607bfix: return empty string instead of empty list with correct tool_calls responses for specific models86e5644feat: support streaming for o3 based models62e74d5feat: bump plugin version to 0.0.964f639ffix: bump dependencies📊 Changes
3 files changed (+25 additions, -18 deletions)
View changed files
📝
models/azure_openai/manifest.yaml(+1 -1)📝
models/azure_openai/models/llm/llm.py(+21 -14)📝
models/azure_openai/requirements.txt(+3 -3)📄 Description
This PR changes following implementations:
ifstatement based on the model name to a judgment usingbase_model_name[]is returned as the content from LLM in models, which was causing errors on the API side. To resolve this, This PR changed it to return""when the result is[].stream: falseCorrected conditionals for this.closes #487
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.