Skip to content

armgit / dspy

Public Imported from GitHub
0

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__.py
index 8f4702d63..a4413d3ec 100644
--- a/dsp/modules/__init__.py
+++ b/dsp/modules/__init__.py
@@ -20,7 +20,7 @@ from .hf import HFModel
from .hf_client import Anyscale, HFClientTGI, Together
from .mistral import *
from .ollama import *
-from .openai_compatible import OpenAICompatible
+from .multi_openai import MultiOpenAI
from .premai import PremAI
from .pyserini import *
from .sbert import *
diff --git a/dsp/modules/openai_compatible.py b/dsp/modules/multi_openai.py
similarity index 99%
rename from dsp/modules/openai_compatible.py
rename to dsp/modules/multi_openai.py
index 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__.py
index e21bd8fd4..1f5e13a43 100644
--- a/dspy/__init__.py
+++ b/dspy/__init__.py
@@ -16,7 +16,7 @@ LM = dsp.LM
AzureOpenAI = dsp.AzureOpenAI
OpenAI = dsp.GPT3
-OpenAICompatible = dsp.OpenAICompatible
+MultiOpenAI = dsp.MultiOpenAI
Mistral = dsp.Mistral
Databricks = dsp.Databricks
Cohere = dsp.Cohere