DSPy: The framework for programming—not prompting—language models
Python
Update gpt3.py
Omar Khattab4774fd28e548
diff --git a/dsp/modules/gpt3.py b/dsp/modules/gpt3.pyindex 2e91a51bc..f0c7b6679 100644--- a/dsp/modules/gpt3.py+++ b/dsp/modules/gpt3.py@@ -42,7 +42,7 @@ class GPT3(LM):super().__init__(model)self.provider = "openai"- default_model_type = "chat" if ('gpt-3.5' in model or 'gpt-4' in model) and ('instruct' not in model) else "text"+ default_model_type = "chat" if ('gpt-3.5' in model or 'turbo' in model or 'gpt-4' in model) and ('instruct' not in model) else "text"self.model_type = model_type if model_type else default_model_typeif api_provider == "azure":