Skip to content

Commit

Permalink
Do not replicate invalid markets (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Oct 11, 2024
1 parent 00f4f47 commit a1931b8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from prediction_market_agent_tooling.markets.omen.omen_subgraph_handler import (
OmenSubgraphHandler,
)
from prediction_market_agent_tooling.tools.is_invalid import is_invalid
from prediction_market_agent_tooling.tools.is_predictable import (
is_predictable_binary,
is_predictable_without_description,
Expand Down Expand Up @@ -128,6 +129,12 @@ def omen_replicate_from_tx(
continue

# Do as the last steps, becuase it calls OpenAI (costly & slow).
if is_invalid(market.question):
logger.info(
f"Skipping `{market.question}` because it seems to be an invalid question."
)
continue

if not is_predictable_binary(market.question):
logger.info(
f"Skipping `{market.question}` because it seems to not be predictable."
Expand Down

0 comments on commit a1931b8

Please sign in to comment.