forked from ShishirPatil/gorilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BFCL] Sanity check is now optional (ShishirPatil#496)
1. Sanity check is now optional. Further if the checks fail, we catch that and then continue the evaluation. That way if an API is down, it doesn't hinder other evaluations especially AST evaluations. 2. Update README. Close ShishirPatil#486 This PR does NOT update the Leaderboard values. --------- Co-authored-by: Huanzhi Mao <huanzhimao@gmail.com>
- Loading branch information
1 parent
d6ca494
commit 3a29cae
Showing
6 changed files
with
126 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
berkeley-function-call-leaderboard/eval_checker/custom_exception.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
class NoAPIKeyError(Exception): | ||
def __init__(self): | ||
self.message = "Please fill in the API keys in the function_credential_config.json file. If you do not provide the API keys, the executable test category results will be inaccurate." | ||
self.message = "❗️Please fill in the API keys in the function_credential_config.json file. If you do not provide the API keys, the executable test category results will be inaccurate." | ||
super().__init__(self.message) | ||
|
||
|
||
class BadAPIStatusError(Exception): | ||
def __init__(self, message): | ||
self.message = message | ||
super().__init__(self.message) | ||
def __init__(self, errors, error_rate): | ||
self.errors = errors | ||
self.error_rate = error_rate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.