fix(solver): vectorize_model fix generate_key (#518)

* add async return

* turn vectorize model to singleton

* turn vectorize model to singleton

* add schema type linker

* fix black format

* bugfix vectorize

---------

Co-authored-by: 钟书 <zhongshu.zzs@antgroup.com>
This commit is contained in:
royzhao 2025-05-06 21:02:18 +08:00 committed by GitHub
parent 404d79b304
commit 6a4ab468fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class VectorizeModelABC(Registrable):
raise RuntimeError(message) from ex
@classmethod
def generate_key(self, cls, *args, **kwargs) -> str:
def generate_key(cls, *args, **kwargs) -> str:
return f"{cls}"
@retry(stop=stop_after_attempt(3), reraise=True)

View File

@ -424,7 +424,7 @@ Rewritten question:\n{content}
self.last_report = request
if self.last_report.to_dict() == request.to_dict():
return
logger.info(f"do_report: {request} ret={ret}")
logger.info(f"do_report: {content.answer} think={content.think} ret={ret}")
self.last_report = request
except Exception as e: