Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies = [
"google-cloud-aiplatform>=1.27.0"
]
name = "scikit-llm"
version = "0.4.0"
version = "0.4.1"
authors = [
{ name="Oleg Kostromin", email="kostromin97@gmail.com" },
{ name="Iryna Kondrashchenko", email="iryna230520@gmail.com" },
Expand Down
4 changes: 4 additions & 0 deletions skllm/models/gpt/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ def _get_prompt(self, x: str) -> str:
def _build_label(self, label: str):
return label

def _predict_single(self, x):
completion = self._get_chat_completion(x)
return completion["choices"][0]["message"]["content"]

def fit(
self,
X: Union[np.ndarray, pd.Series, List[str]],
Expand Down