From 396eb58aa3241cc79e98d46e6880f5cee1ce81ef Mon Sep 17 00:00:00 2001 From: William Guss Date: Wed, 21 Aug 2024 19:40:54 -0700 Subject: [PATCH] are u kidding --- src/ell/util/api.py | 7 ++++++- src/ell/util/closure.py | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ell/util/api.py b/src/ell/util/api.py index 05d2f634..246dfffa 100644 --- a/src/ell/util/api.py +++ b/src/ell/util/api.py @@ -139,4 +139,9 @@ def _call( for _, choice_deltas in sorted(choices_progress.items(), key= lambda x: x[0],) ] - return tracked_results[0] if n_choices == 1 else tracked_results, metadata \ No newline at end of file + return tracked_results[0] if n_choices == 1 else tracked_results, metadata + +# Todo: for implementation of lmp.text, & lmp.multimodal, we need to do the following: +# 1. implement a _call fn that creates a generic multimodal output input and output type irrespective of the client for a model +# 2. modify lm to use _call then process it as a ttacke dlstr so tis very clean to use +# 3. implement a multimodal decorator that can handle the multimodal input and output types & does not restructure shit. \ No newline at end of file diff --git a/src/ell/util/closure.py b/src/ell/util/closure.py index 7bd39981..b3fdd73c 100644 --- a/src/ell/util/closure.py +++ b/src/ell/util/closure.py @@ -505,3 +505,5 @@ def globalvars(func, recurse=True, builtin=False): #NOTE: if name not in __globals__, then we skip it... return dict((name,globs[name]) for name in func if name in globs) + +# XXX: This is a mess. COuld probably be about 100 lines of code max. \ No newline at end of file