mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
parent
cdc23ba5dc
commit
632ab0161c
22 changed files with 85 additions and 0 deletions
|
|
@ -408,6 +408,9 @@ class SQLQueryEnv(BaseEnv):
|
|||
percentage_of_range = min(percentage_of_range, 1.0)
|
||||
scores["scores"].append(1.0 - percentage_of_range)
|
||||
|
||||
if all([scores["scores"][0] == score for score in scores["scores"]]):
|
||||
return None # If all the same, return None
|
||||
|
||||
return scores
|
||||
|
||||
async def get_next_item(self) -> WikiSQLRow:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue