-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactoring API and adding stubs for new OpenAI endpoints (#437)
* moving over assistants stuff * adding in some files endpoints stuff * Addressing formatting issues * add stubs for vector store * add threads stubs * stub messages and vector store files * fix openai typing refs * stubbing out runs and runs steps * typing issues, and removing tests * only include endpoints if Supabase is available * fix formatting issue * more robustly handle missing supabase * refactor supabase_wrapper * snazzy tests * refactor Supabase Wrapper * remove supabase-jwt secret (for now) * update stubs to async defs * new branch to focus on refactoring API and adding new stubs for OpenAI endpoints * revert Zarf.yaml changes * we don't need .env until we have Supabase * refactoring tests * fix formatting issues * removing Supabase stuff (for now) * refactoring api * fix formatting issues pre-commit didn't catch... * add back legacy completions endpoint (for now) * some rework * ensure pytest runs * adding back the custom Usage class * fixing blank space * moving types to backend * updating typing for helpers * deprecate legacy Optional typing * deprecate legacy List typing * fix nonetype error * fixing Usage convention
- Loading branch information
Showing
25 changed files
with
668 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ zarf-sbom/ | |
/values.yaml | ||
.pytest_cache | ||
*egg-info | ||
egg-info/ | ||
build/ | ||
*.whl | ||
.model/ | ||
|
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,6 @@ | ||
install: | ||
python -m pip install -e . | ||
|
||
dev: | ||
make install | ||
python -m uvicorn main:app --port 3000 --reload |
File renamed without changes.
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
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.
Oops, something went wrong.