Skip to content

Conversation

@yuneng-jiang
Copy link
Collaborator

@yuneng-jiang yuneng-jiang commented Dec 5, 2025

[Fix] Custom Callback on UI

Relevant issues

Setting a Custom Callback on the UI was not working previously. The root cause was the backend not respecting "custom_callback_api" as a valid callback. Changed it to be the expected "generic_api", which can also be defined in the env variables. See screenshots for testing

This stopped the UI from populating the fields for custom callback api

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix
✅ Test

Changes

image image

Testing Setup:
image

After clicking Test Callback:
image

Result:
image

@vercel
Copy link

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Dec 7, 2025 5:25am

@yuneng-jiang yuneng-jiang marked this pull request as draft December 5, 2025 19:41
@yuneng-jiang yuneng-jiang changed the title [Fix] /get/config/callbacks callback variables [Fix] Custom Callback on UI Dec 6, 2025
@yuneng-jiang yuneng-jiang merged commit e2e35c3 into main Dec 7, 2025
52 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants