Skip to content

Commit efcc88d

Browse files
committed
🐛 openai llm load fix
1 parent 2fcf15c commit efcc88d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ontoaligner/aligner/llm/llm.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Scientific Knowledge Organization (SciKnowOrg) Research Group.
1+
# Copyright 2025 Scientific Knowledge Organization (SciKnowOrg) Research Group.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -306,6 +306,15 @@ def __str__(self):
306306
"""
307307
return "OpenAILLM"
308308

309+
def load(self, path: str) -> None:
310+
"""
311+
Loads the tokenizer and model from the specified path.
312+
313+
Args:
314+
path (str): The path to the pretrained model and tokenizer.
315+
"""
316+
self.path = path
317+
309318
def tokenize(self, input_data: List) -> Any:
310319
"""
311320
Tokenizes the input data. For OpenAI models, it returns the input data as is.

0 commit comments

Comments
 (0)