[PR #43] [CLOSED] Fix: replace param max_tokens to max_completetion_tokens #102

Closed
opened 2026-02-15 21:15:46 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/43
Author: @chekun
Created: 3/14/2025
Status: Closed

Base: mainHead: patch-1


📝 Commits (1)

  • d785b2f replace param max_tokens to max_completetion_tokens

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/openai_compatible/llm.py (+1 -1)

📄 Description

max_tokens is deprecated

See https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_tokens


🔄 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-plugin-sdks/pull/43 **Author:** [@chekun](https://github.com/chekun) **Created:** 3/14/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`d785b2f`](https://github.com/langgenius/dify-plugin-sdks/commit/d785b2f2bc7d05ef53d9c88a72bb2f59c6c22c64) replace param `max_tokens` to `max_completetion_tokens` ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/openai_compatible/llm.py` (+1 -1) </details> ### 📄 Description `max_tokens` is deprecated See https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_tokens --- <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-15 21:15:46 -05:00
yindo closed this issue 2026-02-15 21:15:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#102