Skip to content

fix: sync 35528#35539

Merged
wylswz merged 3 commits intolanggenius:mainfrom
wylswz:fix/sync-35528-to-main
Apr 24, 2026
Merged

fix: sync 35528#35539
wylswz merged 3 commits intolanggenius:mainfrom
wylswz:fix/sync-35528-to-main

Conversation

@wylswz
Copy link
Copy Markdown
Contributor

@wylswz wylswz commented Apr 24, 2026

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

see #35528

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 24, 2026
@wylswz wylswz requested a review from laipz8200 April 24, 2026 03:18
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 24, 2026
@wylswz wylswz added this pull request to the merge queue Apr 24, 2026
self.credentials_cache = {}

def fetch(self, provider_name: str, model_name: str) -> dict[str, Any]:
if (provider_name, model_name) in self.credentials_cache:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this cache overlaps with ModelManager._credentials_cache enabled at L107. Both ultimately call provider_configuration.get_current_credentials for the same (provider, LLM, model).

Merged via the queue into langgenius:main with commit 48e13f6 Apr 24, 2026
27 checks passed
@wylswz wylswz deleted the fix/sync-35528-to-main branch April 24, 2026 04:09
asukaminato0721 pushed a commit to asukaminato0721/dify that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants