Skip to content

Commit

Permalink
improvement: improve llm handling of strings (#269)
Browse files Browse the repository at this point in the history
Signed-off-by: Agustín Ramiro Díaz <[email protected]>
  • Loading branch information
AgustinRamiroDiaz authored Jul 11, 2024
1 parent a144cc3 commit 4a06b06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/contracts/football_prediction_market.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ async def resolve(self) -> None:
"score": str, // The score with numbers only, e.g, "1:2", or "-" if the game is not resolved yet
"winner": int, // The number of the winning team, 0 for draw, or -1 if the game is not yet finished
}}
It is mandatory that you respond only using the JSON format above,
nothing else. Don't include any other words or characters,
your output must be only be JSON.
"""
result = await eq.call_llm(task)
print(result)
Expand Down

0 comments on commit 4a06b06

Please sign in to comment.