feat(fine-tuning): address greptile review feedback (greploop iteration 5)

- Remove unused FineTuningJob import from test
- Document "canceling" → "cancelled" mapping in _AZURE_STATUS_MAP

Made-with: Cursor
This commit is contained in:
Sameer Kankute 2026-03-23 13:03:10 +05:30
parent 528bac5a27
commit e635cee712
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,8 @@ _AZURE_STATUS_MAP = {
"canceled": "cancelled",
"canceling": "cancelled",
}
# Note: Azure's "canceling" (in-progress) is mapped to "cancelled" (terminal)
# because LiteLLMFineTuningJob schema has no intermediate cancellation state.
def _normalize_fine_tuning_job_dict(

View file

@ -616,7 +616,6 @@ async def test_mock_openai_retrieve_fine_tune_job():
@pytest.mark.asyncio
async def test_mock_azure_create_fine_tune_job_with_azure_specific_params():
"""Test that Azure-specific parameters are passed through extra_body"""
from openai.types.fine_tuning.fine_tuning_job import FineTuningJob
from openai.types.fine_tuning.fine_tuning_job import Hyperparameters as OAIHyperparameters
from litellm.types.utils import LiteLLMFineTuningJob