Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Add Helicone #81

Merged
merged 3 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AGENT_NAME: ${{ matrix.agent-name }}
PROMPT_USER: false # For mini-agi. TODO: Remove this once mini-agi follows the standards.
HELICONE_API_KEY: ${{ secrets.HELICONE_API_KEY }}

- name: Upload logs as artifact
if: always()
Expand Down
3 changes: 2 additions & 1 deletion agbenchmark/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from dotenv import load_dotenv

from agbenchmark.challenges.define_task_types import ChallengeData, Ground
from agbenchmark.start_benchmark import CURRENT_DIRECTORY

load_dotenv()

Expand All @@ -23,7 +24,7 @@ class Challenge(ABC):

@property
def data(self) -> ChallengeData:
file_path = f"{self.CHALLENGE_LOCATION}/data.json"
file_path = f"{CURRENT_DIRECTORY}/../{self.CHALLENGE_LOCATION}/data.json"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes the CI when not using the mocks

if file_path not in Challenge._data_cache:
Challenge._data_cache[file_path] = ChallengeData.deserialize(file_path)
return Challenge._data_cache[file_path]
Expand Down
3 changes: 2 additions & 1 deletion agbenchmark/challenges/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
from dotenv import load_dotenv

from agbenchmark.challenge import Challenge
from agbenchmark.start_benchmark import CURRENT_DIRECTORY

load_dotenv()

IMPROVE = os.getenv("IMPROVE", "False")


json_files = glob.glob("agbenchmark/challenges/**/data.json", recursive=True)
json_files = glob.glob(f"{CURRENT_DIRECTORY}/challenges/**/data.json", recursive=True)


def get_test_path(json_file: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion agent/Auto-GPT