Skip to content

Conversation

frankzye
Copy link
Contributor

Pass function tool description for databricks provider

Relevant issues

Fixed the issue when call chat completions with function call payload, the description is not pass through in databrick provider

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

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test

Changes

Copy link

vercel bot commented Aug 22, 2025

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

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Sep 10, 2025 5:43am

type="function",
function=DatabricksFunction(
name=tool["name"],
description=cast(dict, tool.get("description")),
Copy link
Contributor

Choose a reason for hiding this comment

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

this assumes description is always set and is a dictionary.

this is not always true.

can you please handle for the none case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated, please help review @krrishdholakia

@frankzye frankzye force-pushed the feature/databricks-function-call-missing-pass-description branch from 7a9ed7d to 75a7b39 Compare August 30, 2025 01:28
@krrishdholakia krrishdholakia merged commit 6a47ac1 into BerriAI:main Sep 10, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants