Skip to content

Commit

Permalink
add kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed May 16, 2024
1 parent 3473cb2 commit 010f2e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from factcheck import FactCheck
from factcheck.utils.multimodal import modal_normalization
import json
import typing as t
from langchain_openai import ChatOpenAI
from typing import Annotated, Any, Dict, Optional, Tuple
from pydantic import BaseModel, BeforeValidator
Expand Down Expand Up @@ -173,7 +174,10 @@ def most_common_fact_result(results: list[FactCheckResult]) -> FactCheckResult:


def run(
prompt: str, api_keys: dict[str, str], n_fact_runs: int = 3
prompt: str,
api_keys: dict[str, str],
n_fact_runs: int = 3,
**kwargs: t.Any, # Just to ignore any other arguments passed to the resolver by the universal benchmark script.
) -> Tuple[str, Optional[str], Optional[Dict[str, Any]], Any]:
"""
Run the prediction market resolver based on Open Fact Verifier.
Expand Down

0 comments on commit 010f2e9

Please sign in to comment.