DSPy: The framework for programming—not prompting—language models
Python
Fix typing
Isaac Millerbf8caa11aeee
diff --git a/dsp/modules/trainable_openai.py b/dsp/modules/trainable_openai.pyindex 927edebb4..a25f4f8d2 100644--- a/dsp/modules/trainable_openai.py+++ b/dsp/modules/trainable_openai.py@@ -379,7 +379,7 @@ class TrainableOpenAI(GPT3, TrainableLM):model.fine_tuning_job_id = job_idreturn model- def get_finetune(self, train_path: str, val_path: str | None, method: TrainingMethod, **kwargs) -> Future[TrainableLM]:+ def get_finetune(self, train_path: str, val_path: Optional[str], method: TrainingMethod, **kwargs) -> Future[TrainableLM]:"""Does everything required to finetune an OpenAI model.