-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAI v1.x migraation + robust hasattr for instrumentation issues (#555
) * [bot] migrate files * bump openai versions to >=1.1.1 * Update text2text_quickstart.py * Update keys.py * fix format check * first * fix imports * format * remove openai key setting bc it is now instantiated with client * remove extra import * more keys migration * convert pydantic model resposnes to dict * update endpoint * key in client for endpoint * instrumen the client * moderation response to dict * response hadnling * migrate moderation * remove old key setting in azure * logger bug * remove logger * remove other loggers * remove dependency on llama service context * undo embeddings change * response handling * more updates * instrument client.completions instance, debugging * update to openai 1.x * Reverting to instrument module * update versions * old bug in appui * don't use safe_* in Lens * bug fix and dev notes * dev notes * more notes * bug fixes * more devnotes * remove extra prints, convert others to logger.info * remove unneeded instrument_instance * remove extra client instantiation, openai imports * client treatment in openai.py * Fix openai client Make it a member of openAI endpoint * fix self-harm moderation * pin llama_index --------- Co-authored-by: grit-app[bot] <grit-app[bot]@users.noreply.github.com> Co-authored-by: Josh Reini <[email protected]> Co-authored-by: Josh Reini <[email protected]> Co-authored-by: Shayak Sen <[email protected]>
- Loading branch information
1 parent
ff40d5a
commit ddb2841
Showing
31 changed files
with
442 additions
and
348 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 0.0.1 | ||
patterns: | ||
- name: github.com/getgrit/js#* | ||
- name: github.com/getgrit/python#* | ||
- name: github.com/getgrit/json#* | ||
- name: github.com/getgrit/hcl#* | ||
- name: github.com/getgrit/python#openai | ||
level: info |
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 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 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
Oops, something went wrong.