Skip to content

Commit

Permalink
Fix #10, drop 'seed' argument if used for Anthropic Claude models
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayjest committed Mar 12, 2024
1 parent f384bec commit 66e8021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion microcore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ def delete(self, collection: str, what: str | list[str] | dict):
# "wrappers",
]

__version__ = "2.0.0"
__version__ = "2.0.1"
1 change: 1 addition & 0 deletions microcore/llm/anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def _process_streamed_response(response, callbacks: list[callable]):
def _prepare_llm_arguments(config: Config, kwargs: dict):
args = {"max_tokens": 1024, **config.LLM_DEFAULT_ARGS, **kwargs}
args["model"] = args.get("model", config.MODEL)
args.pop('seed', None) # Not supported by Anthropic
callbacks: list[callable] = args.pop("callbacks", [])
if "callback" in args:
cb = args.pop("callback")
Expand Down

0 comments on commit 66e8021

Please sign in to comment.