-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sdk): rename json and fn to be more explicit
- Loading branch information
1 parent
4b7de26
commit 3a26cb0
Showing
5 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
sdk-python/test/openai_api/format_finder.py → sdk-python/test/openai/format_finder.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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import json | ||
import os | ||
|
||
from format_finder import extract_chatcompletion_ref, fetch_api_format | ||
|
||
result = fetch_api_format() | ||
result = extract_chatcompletion_ref(result) | ||
print("Updating the OpenAI API reference format to:\n", result) | ||
|
||
reference_path = os.path.abspath("./test/openai_api/chatcompletion_ref.json") | ||
with open(reference_path, "w") as f: | ||
json.dump(result, f) |
14 changes: 8 additions & 6 deletions
14
...python/test/openai_api/validate_format.py → sdk-python/test/openai/validate_format.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
This file was deleted.
Oops, something went wrong.