DSPy: The framework for programming—not prompting—language models
Python
rename OpenAICompatible to MultiOpenAI
someonekong0712ae828f11
diff --git a/dsp/modules/__init__.py b/dsp/modules/__init__.pyindex 8f4702d63..a4413d3ec 100644--- a/dsp/modules/__init__.py+++ b/dsp/modules/__init__.py@@ -20,7 +20,7 @@ from .hf import HFModelfrom .hf_client import Anyscale, HFClientTGI, Togetherfrom .mistral import *from .ollama import *-from .openai_compatible import OpenAICompatible+from .multi_openai import MultiOpenAIfrom .premai import PremAIfrom .pyserini import *from .sbert import *diff --git a/dsp/modules/openai_compatible.py b/dsp/modules/multi_openai.pysimilarity index 99%rename from dsp/modules/openai_compatible.pyrename to dsp/modules/multi_openai.pyindex 9a727b3d0..ec0dce8da 100644--- a/dsp/modules/openai_compatible.py+++ b/dsp/modules/multi_openai.py@@ -34,7 +34,7 @@ def backoff_hdlr(details):)-class OpenAICompatible(LM):+class MultiOpenAI(LM):"""Wrapper around OpenAI Compatible API.Args:diff --git a/dspy/__init__.py b/dspy/__init__.pyindex e21bd8fd4..1f5e13a43 100644--- a/dspy/__init__.py+++ b/dspy/__init__.py@@ -16,7 +16,7 @@ LM = dsp.LMAzureOpenAI = dsp.AzureOpenAIOpenAI = dsp.GPT3-OpenAICompatible = dsp.OpenAICompatible+MultiOpenAI = dsp.MultiOpenAIMistral = dsp.MistralDatabricks = dsp.DatabricksCohere = dsp.Cohere