Skip to content

Commit

Permalink
Add default case for training type as full
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsh Zahed authored and Arsh Zahed committed Aug 28, 2024
1 parent fe40c59 commit bdea27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/together/types/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class FinetuneResponse(BaseModel):
@field_validator("training_type")
@classmethod
def validate_training_type(cls, v: TrainingType) -> TrainingType:
if v.type == "Full":
if v.type == "Full" or v.type == "":
return FullTrainingType(**v.model_dump())
elif v.type == "Lora":
return LoRATrainingType(**v.model_dump())
Expand Down

0 comments on commit bdea27f

Please sign in to comment.