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[pipelines]>=1.27.0,<2.0.0"
]
name = "scikit-llm"
version = "1.3.0"
version = "1.3.1"
authors = [
{ name="Oleh Kostromin", email="kostromin97@gmail.com" },
{ name="Iryna Kondrashchenko", email="iryna230520@gmail.com" },
Expand Down
2 changes: 1 addition & 1 deletion skllm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.3.0'
__version__ = '1.3.1'
__author__ = 'Iryna Kondrashchenko, Oleh Kostromin'
12 changes: 8 additions & 4 deletions skllm/llm/gpt/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ def _set_keys(self, key: Optional[str] = None, org: Optional[str] = None) -> Non
"""
Set the OpenAI key and organization.
"""

self.key = key
self.org = org


def _get_openai_key(self) -> str:
"""
Expand Down Expand Up @@ -214,7 +213,12 @@ def _get_embeddings(self, text: np.ndarray) -> List[List[float]]:

# for now this works only with OpenAI
class GPTTunableMixin(BaseTunableMixin):
_supported_tunable_models = ["gpt-3.5-turbo-0125", "gpt-3.5-turbo"]
_supported_tunable_models = [
"gpt-3.5-turbo-0125",
"gpt-3.5-turbo",
"gpt-4o-mini-2024-07-18",
"gpt-4o-mini",
]

def _build_label(self, label: str):
return json.dumps({"label": label})
Expand Down Expand Up @@ -264,4 +268,4 @@ def _tune(self, X, y):
self.openai_model = job.fine_tuned_model
self.model = self.openai_model # openai_model is probably not required anymore
delete_file(client, job.training_file)
print(f"Finished training.")
print(f"Finished training.")