Skip to content

Commit

Permalink
Merge pull request #4 from parlance-labs/upgrade
Browse files Browse the repository at this point in the history
save
  • Loading branch information
hamelsmu committed Feb 26, 2024
2 parents 6dc66a9 + 3879cca commit b880fc0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion langfree/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.28"
__version__ = "0.0.29"
1 change: 1 addition & 0 deletions langfree/_modidx.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
'langfree/transform.py'),
'langfree.transform.RunData.from_run_id': ( 'transform.html#rundata.from_run_id',
'langfree/transform.py'),
'langfree.transform.RunData.outputs': ('transform.html#rundata.outputs', 'langfree/transform.py'),
'langfree.transform.RunData.to_json': ('transform.html#rundata.to_json', 'langfree/transform.py'),
'langfree.transform.RunData.to_msg_dict': ( 'transform.html#rundata.to_msg_dict',
'langfree/transform.py'),
Expand Down
5 changes: 5 additions & 0 deletions langfree/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ def to_json(self):
"The json version of `to_msg_dict`."
return json.dumps(self.to_msg_dict())

@property
def outputs(self):
"Return outputs for langsmith Datasets compatibility."
return self.output

@property
def flat_input(self):
"The input to the LLM in markdown."
Expand Down
5 changes: 5 additions & 0 deletions nbs/02_transform.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@
" return json.dumps(self.to_msg_dict())\n",
"\n",
" @property\n",
" def outputs(self):\n",
" \"Return outputs for langsmith Datasets compatibility.\"\n",
" return self.output\n",
"\n",
" @property\n",
" def flat_input(self):\n",
" \"The input to the LLM in markdown.\"\n",
" return self._flatten_data(self.inputs)\n",
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DEFAULT]
repo = langfree
lib_name = langfree
version = 0.0.28
version = 0.0.29
min_python = 3.7
license = apache2
black_formatting = False
Expand Down

0 comments on commit b880fc0

Please sign in to comment.