Skip to content

Commit 1096176

Browse files
committed
updated list of tunable models
1 parent d0fe2b2 commit 1096176

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies = [
1111
"google-cloud-aiplatform[pipelines]>=1.27.0,<2.0.0"
1212
]
1313
name = "scikit-llm"
14-
version = "1.3.0"
14+
version = "1.3.1"
1515
authors = [
1616
{ name="Oleh Kostromin", email="[email protected]" },
1717
{ name="Iryna Kondrashchenko", email="[email protected]" },

skllm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '1.3.0'
1+
__version__ = '1.3.1'
22
__author__ = 'Iryna Kondrashchenko, Oleh Kostromin'

skllm/llm/gpt/mixin.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ def _set_keys(self, key: Optional[str] = None, org: Optional[str] = None) -> Non
6666
"""
6767
Set the OpenAI key and organization.
6868
"""
69-
69+
7070
self.key = key
7171
self.org = org
72-
7372

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

215214
# for now this works only with OpenAI
216215
class GPTTunableMixin(BaseTunableMixin):
217-
_supported_tunable_models = ["gpt-3.5-turbo-0125", "gpt-3.5-turbo"]
216+
_supported_tunable_models = [
217+
"gpt-3.5-turbo-0125",
218+
"gpt-3.5-turbo",
219+
"gpt-4o-mini-2024-07-18",
220+
"gpt-4o-mini",
221+
]
218222

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

0 commit comments

Comments
 (0)