Skip to content

Commit

Permalink
Merge pull request cheshire-cat-ai#651 from cheshire-cat-ai/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pieroit authored Jan 4, 2024
2 parents c579b01 + 8c479dd commit 6298ed6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/cat/factory/embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_allowed_embedder_models():
]

mad_hatter_instance = MadHatter()
list_embedder = mad_hatter_instance.execute_hook("factory_allowed_embedder", list_embedder_default, cat=None)
list_embedder = mad_hatter_instance.execute_hook("factory_allowed_embedders", list_embedder_default, cat=None)
return list_embedder


Expand Down
8 changes: 4 additions & 4 deletions core/cat/mad_hatter/core_plugin/hooks/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ def factory_allowed_llms(allowed, cat) -> List:
return allowed

@hook(priority=0)
def factory_allowed_embedder(allowed, cat) -> List:
"""Hook to extend support of embedder.
def factory_allowed_embedders(allowed, cat) -> List:
"""Hook to extend list of supported embedders.
Parameters
---------
allowed : embedder of EmbedderSettings classes
list of allowed language models
list of allowed embedders
Returns
-------
supported : List of EmbedderSettings classes
list of allowed language models
list of allowed embedders
"""
return allowed
2 changes: 1 addition & 1 deletion core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "Cheshire-Cat"
description = "Production ready AI assistant framework"
version = "1.4.4"
version = "1.4.5"
requires-python = ">=3.10"
license = { file="LICENSE" }
authors = [
Expand Down

0 comments on commit 6298ed6

Please sign in to comment.