anontation fix (#3018)

* anontation fix

* fix param name and type

---------

Co-authored-by: Richard Beales <rich@richbeales.net>
pull/2803/head
Lei Zhang 2023-04-25 04:08:02 +08:00 committed by GitHub
parent 8bf4eb7e90
commit a5cc67badd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -265,9 +265,9 @@ class Config(metaclass=Singleton):
"""Set the temperature value."""
self.temperature = value
def set_memory_backend(self, value: int) -> None:
"""Set the temperature value."""
self.memory_backend = value
def set_memory_backend(self, name: str) -> None:
"""Set the memory backend name."""
self.memory_backend = name
def check_openai_api_key() -> None: