mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
bump ver to 200 (#6130)
This commit is contained in:
parent
e41f0b341c
commit
6ac120f299
@ -56,7 +56,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": 6,
|
||||||
"id": "9ff6cee9",
|
"id": "9ff6cee9",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -66,46 +66,31 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": 7,
|
||||||
"id": "ba8e4cbe",
|
"id": "ba8e4cbe",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"scrolled": false
|
"scrolled": false
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
|
||||||
"name": "stderr",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"Error in on_chain_start callback: 'name'\n"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"\u001b[1m> Entering new chain...\u001b[0m\n",
|
||||||
"\u001b[32;1m\u001b[1;3m\n",
|
"\u001b[32;1m\u001b[1;3m\n",
|
||||||
"Invoking: `Search` with `{'query': 'Leo DiCaprio girlfriend'}`\n",
|
"Invoking: `Search` with `{'query': 'Leo DiCaprio girlfriend'}`\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\u001b[0m\u001b[36;1m\u001b[1;3mAmidst his casual romance with Gigi, Leo allegedly entered a relationship with 19-year old model, Eden Polani, in February 2023.\u001b[0m"
|
"\u001b[0m\u001b[36;1m\u001b[1;3mAmidst his casual romance with Gigi, Leo allegedly entered a relationship with 19-year old model, Eden Polani, in February 2023.\u001b[0m\u001b[32;1m\u001b[1;3m\n",
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stderr",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"Error in on_chain_start callback: 'name'\n"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"\u001b[32;1m\u001b[1;3m\n",
|
|
||||||
"Invoking: `Calculator` with `{'expression': '19^0.43'}`\n",
|
"Invoking: `Calculator` with `{'expression': '19^0.43'}`\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\u001b[0m19^0.43\u001b[32;1m\u001b[1;3m```text\n",
|
"\u001b[0m\n",
|
||||||
|
"\n",
|
||||||
|
"\u001b[1m> Entering new chain...\u001b[0m\n",
|
||||||
|
"19^0.43\u001b[32;1m\u001b[1;3m```text\n",
|
||||||
"19**0.43\n",
|
"19**0.43\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"...numexpr.evaluate(\"19**0.43\")...\n",
|
"...numexpr.evaluate(\"19**0.43\")...\n",
|
||||||
@ -123,7 +108,7 @@
|
|||||||
"\"Leo DiCaprio's girlfriend is reportedly Eden Polani. Her current age raised to the power of 0.43 is approximately 3.55.\""
|
"\"Leo DiCaprio's girlfriend is reportedly Eden Polani. Her current age raised to the power of 0.43 is approximately 3.55.\""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 4,
|
"execution_count": 7,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class StdOutCallbackHandler(BaseCallbackHandler):
|
|||||||
self, serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any
|
self, serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Print out that we are entering a chain."""
|
"""Print out that we are entering a chain."""
|
||||||
class_name = serialized["name"]
|
class_name = serialized.get("name", "")
|
||||||
print(f"\n\n\033[1m> Entering new {class_name} chain...\033[0m")
|
print(f"\n\n\033[1m> Entering new {class_name} chain...\033[0m")
|
||||||
|
|
||||||
def on_chain_end(self, outputs: Dict[str, Any], **kwargs: Any) -> None:
|
def on_chain_end(self, outputs: Dict[str, Any], **kwargs: Any) -> None:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "langchain"
|
name = "langchain"
|
||||||
version = "0.0.199"
|
version = "0.0.200"
|
||||||
description = "Building applications with LLMs through composability"
|
description = "Building applications with LLMs through composability"
|
||||||
authors = []
|
authors = []
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
Reference in New Issue
Block a user