chore: document APIBackend parameters and remove sparse dep (#1019)

This commit is contained in:
you-n-g
2025-07-04 20:31:06 +08:00
committed by GitHub
parent eff5dcc879
commit 6dbef13837
2 changed files with 12 additions and 3 deletions
+12
View File
@@ -279,6 +279,18 @@ class APIBackend(ABC):
Responseible for building messages and logging messages
TODO: What is weird is that the function is called before we seperate embeddings and chat completion.
Parameters
----------
user_prompt : str
system_prompt : str | None
former_messages : list | None
response_format : BaseModel | dict
A BaseModel based on pydantic or a dict
**kwargs
Returns
-------
str
"""
if former_messages is None:
former_messages = []
-3
View File
@@ -66,6 +66,3 @@ genson
mlflow
azureml-mlflow
types-pytz
# data science scenario for custom dataset
sparse