Spaces:
Build error
Build error
o1-mini results
Browse files
data/openai_results.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
llm_toolkit/logical_reasoning_utils.py
CHANGED
|
@@ -15,6 +15,7 @@ from sklearn.metrics import (
|
|
| 15 |
f1_score,
|
| 16 |
confusion_matrix,
|
| 17 |
)
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
print(f"loading {__file__}")
|
|
@@ -520,11 +521,11 @@ def reasoning_with_openai(
|
|
| 520 |
):
|
| 521 |
return invoke_openai_api(
|
| 522 |
user_prompt.format(row["puzzle"], row["truth"], row["text"]),
|
|
|
|
| 523 |
max_tokens=max_tokens,
|
| 524 |
model=model,
|
| 525 |
base_url=base_url,
|
| 526 |
temperature=temperature,
|
| 527 |
-
using_system_prompt=using_system_prompt,
|
| 528 |
)
|
| 529 |
|
| 530 |
|
|
|
|
| 15 |
f1_score,
|
| 16 |
confusion_matrix,
|
| 17 |
)
|
| 18 |
+
from llm_toolkit.llm_utils import invoke_openai_api
|
| 19 |
|
| 20 |
|
| 21 |
print(f"loading {__file__}")
|
|
|
|
| 521 |
):
|
| 522 |
return invoke_openai_api(
|
| 523 |
user_prompt.format(row["puzzle"], row["truth"], row["text"]),
|
| 524 |
+
system_prompt=system_prompt if using_system_prompt else None,
|
| 525 |
max_tokens=max_tokens,
|
| 526 |
model=model,
|
| 527 |
base_url=base_url,
|
| 528 |
temperature=temperature,
|
|
|
|
| 529 |
)
|
| 530 |
|
| 531 |
|
notebooks/04c_OpenAI-o1.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|