Skip to content
Snippets Groups Projects
Commit 46b178e4 authored by Grießhaber Daniel's avatar Grießhaber Daniel :squid:
Browse files

replace path separators in model_name with underscores

parent 1750086e
No related branches found
No related tags found
2 merge requests!2remove is_chat argument,!1Refactor models
......@@ -133,7 +133,9 @@ class LLMModel(ABC):
sort_keys=True,
)
cache_key = (
str(self.model_name) + '/' + hashlib.sha1(unique_options_key.encode()).hexdigest()
str(self.model_name).replace("/", "_")
+ "/"
+ hashlib.sha1(unique_options_key.encode()).hexdigest()
)
return cache_key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment