[PR #269] Make validate credentials max tokens configurable #275

Open
opened 2026-02-15 21:16:32 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/269
Author: @Yeuoly
Created: 12/22/2025
Status: 🔄 Open

Base: mainHead: codex/make-max_tokens-configurable


📝 Commits (2)

  • 01ec67a Bump SDK version to 0.7.1
  • a6d965f Revert annotated-types lock version change

📊 Changes

2 files changed (+10 additions, -3 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/openai_compatible/llm.py (+9 -2)
📝 python/pyproject.toml (+1 -1)

📄 Description

Summary

  • allow overriding validate credential ping max_tokens via validate_credentials_max_tokens credential value with default fallback
  • keep stream validation default max_tokens at 10 (per PR #93) but allow overriding via credentials when specified
  • bump SDK version to 0.7.1

Testing

  • Not run (not requested)

Codex Task


🔄 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/269 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 12/22/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/make-max_tokens-configurable` --- ### 📝 Commits (2) - [`01ec67a`](https://github.com/langgenius/dify-plugin-sdks/commit/01ec67a98cddbd759ca8a9e95657d89aaf72d736) Bump SDK version to 0.7.1 - [`a6d965f`](https://github.com/langgenius/dify-plugin-sdks/commit/a6d965f41a6bf714154037b3cc869bf486a31b58) Revert annotated-types lock version change ### 📊 Changes **2 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/openai_compatible/llm.py` (+9 -2) 📝 `python/pyproject.toml` (+1 -1) </details> ### 📄 Description ## Summary - allow overriding validate credential ping max_tokens via `validate_credentials_max_tokens` credential value with default fallback - keep stream validation default max_tokens at 10 (per PR #93) but allow overriding via credentials when specified - bump SDK version to 0.7.1 ## Testing - Not run (not requested) ------ [Codex Task](https://chatgpt.com/codex/tasks/task_b_69491f6bf5648326a7880f45f886800d) --- <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:16:32 -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#275