DSPy: The framework for programming—not prompting—language models
Python
docs(dspy): Fixed doc string for OpenAI having wrong default model (#794)
Nikola Sobadjiev38c26cc14b50
diff --git a/dsp/modules/azure_openai.py b/dsp/modules/azure_openai.pyindex 1c7cef225..6288875de 100644--- a/dsp/modules/azure_openai.py+++ b/dsp/modules/azure_openai.py@@ -44,7 +44,7 @@ class AzureOpenAI(LM):Args:api_base (str): Azure URL endpoint for model calling, often called 'azure_endpoint'.api_version (str): Version identifier for API.- model (str, optional): OpenAI or Azure supported LLM model to use. Defaults to "text-davinci-002".+ model (str, optional): OpenAI or Azure supported LLM model to use. Defaults to "gpt-3.5-turbo-instruct".api_key (Optional[str], optional): API provider Authentication token. use Defaults to None.model_type (Literal["chat", "text"], optional): The type of model that was specified. Mainly to decide the optimal prompting strategy. Defaults to "chat".**kwargs: Additional arguments to pass to the API provider.diff --git a/dsp/modules/gpt3.py b/dsp/modules/gpt3.pyindex 72aa46c23..b2e7e8589 100644--- a/dsp/modules/gpt3.py+++ b/dsp/modules/gpt3.py@@ -40,7 +40,7 @@ class GPT3(LM):"""Wrapper around OpenAI's GPT API.Args:- model (str, optional): OpenAI supported LLM model to use. Defaults to "text-davinci-002".+ model (str, optional): OpenAI supported LLM model to use. Defaults to "gpt-3.5-turbo-instruct".api_key (Optional[str], optional): API provider Authentication token. use Defaults to None.api_provider (Literal["openai"], optional): The API provider to use. Defaults to "openai".model_type (Literal["chat", "text"], optional): The type of model that was specified. Mainly to decide the optimal prompting strategy. Defaults to "text".