-
Notifications
You must be signed in to change notification settings - Fork 928
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] feat(agents-api,sdks): multimodal support (#343)
* feat: Multimodal support Signed-off-by: Diwank Tomer <[email protected]> * feat: Generate types and sdks * Update openapi.yaml * fix: Fix image-part and text-part objects * fix: Fix model queries to work with new chatml schema Signed-off-by: Diwank Tomer <[email protected]> * fix: Minor fix, do not use datetime.utcnow Signed-off-by: Diwank Tomer <[email protected]> * lint Signed-off-by: Diwank Tomer <[email protected]> * fix(python-sdk): Fix pytype error Signed-off-by: Diwank Tomer <[email protected]> * refactor: Lint sdks/python (CI) * feat(agents-api): Add support for multimodal stuff in sessions.chat Signed-off-by: Diwank Tomer <[email protected]> * fix(agents-api): Fix openapi spec Signed-off-by: Diwank Tomer <[email protected]> * feat(agents-api): Generate types and sdks Signed-off-by: Diwank Singh <[email protected]> * fix: Small fix for pytype Signed-off-by: Diwank Tomer <[email protected]> * fix: Make message content transformations depending on its type * fix: Annotate developer_id as a string * fix(agents-api,sdks): Lint and fix small bug Signed-off-by: Diwank Tomer <[email protected]> * feat(sdks): Add tests for multimodal chat in python sdk Signed-off-by: Diwank Tomer <[email protected]> * fix: Set remember and recall to True by default * fix: Get content length --------- Signed-off-by: Diwank Tomer <[email protected]> Signed-off-by: Diwank Singh <[email protected]> Co-authored-by: Diwank Tomer <[email protected]> Co-authored-by: creatorrr <[email protected]> Co-authored-by: Dmitry Paramonov <[email protected]>
- Loading branch information
1 parent
d734550
commit 7cd34fa
Showing
82 changed files
with
1,478 additions
and
352 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
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,17 @@ | ||
from functools import wraps | ||
|
||
|
||
def pdb_on_exception(fn): | ||
@wraps(fn) | ||
def wrapper(*args, **kwargs): | ||
try: | ||
return fn(*args, **kwargs) | ||
except Exception: | ||
import pdb | ||
import traceback | ||
|
||
traceback.print_exc() | ||
pdb.set_trace() | ||
raise | ||
|
||
return wrapper |
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.