From 9afbcf6e703c791cdbcfeef693369529f58f3c90 Mon Sep 17 00:00:00 2001 From: thinkwee Date: Wed, 25 Oct 2023 10:28:54 +0800 Subject: [PATCH] remove inf retry --- camel/model_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel/model_backend.py b/camel/model_backend.py index e6be3a1..7f8c192 100644 --- a/camel/model_backend.py +++ b/camel/model_backend.py @@ -49,7 +49,7 @@ class OpenAIModel(ModelBackend): self.model_type = model_type self.model_config_dict = model_config_dict - @retry(tries=-1, delay=0, max_delay=None, backoff=1, jitter=0) + # @retry(tries=-1, delay=0, max_delay=None, backoff=1, jitter=0) def run(self, *args, **kwargs) -> Dict[str, Any]: string = "\n".join([message["content"] for message in kwargs["messages"]]) encoding = tiktoken.encoding_for_model(self.model_type.value)