Skip to content

Commit adf2b40

Browse files
committed
Merge branch 'iterloop'
2 parents f54f62e + 8050608 commit adf2b40

File tree

4 files changed

+748
-495
lines changed

4 files changed

+748
-495
lines changed

00_core.ipynb

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@
15271527
"id": "bd556e49",
15281528
"metadata": {},
15291529
"source": [
1530-
"Pass a stop seauence if you want claude to stop generating text when it encounters it.\n"
1530+
"Pass a stop sequence if you want claude to stop generating text when it encounters it."
15311531
]
15321532
},
15331533
{
@@ -3086,7 +3086,7 @@
30863086
" assert cont_pr != \"\", \"cont_pr may not be an empty string\"\n",
30873087
" self.c = (cli or Client(model, cache=cache))\n",
30883088
" if hist is None: hist=[]\n",
3089-
" if tools: tools = [tool(t) for t in tools]\n",
3089+
" if tools: tools = [tool(t) for t in listify(tools)]\n",
30903090
" if ns is None: ns=tools\n",
30913091
" self.h,self.sp,self.tools,self.cont_pr,self.temp,self.cache,self.ns = hist,sp,tools,cont_pr,temp,cache,ns\n",
30923092
"\n",
@@ -3199,7 +3199,7 @@
31993199
"@patch\n",
32003200
"def _stream(self:Chat, res):\n",
32013201
" yield from res\n",
3202-
" self.h += mk_toolres(self.c.result, ns=self.tools, obj=self)"
3202+
" self.h += mk_toolres(self.c.result, ns=self.ns) #, obj=self)"
32033203
]
32043204
},
32053205
{
@@ -5203,7 +5203,7 @@
52035203
},
52045204
{
52055205
"cell_type": "code",
5206-
"execution_count": null,
5206+
"execution_count": 1,
52075207
"id": "1e9ee5c1",
52085208
"metadata": {},
52095209
"outputs": [],
@@ -5225,9 +5225,21 @@
52255225
],
52265226
"metadata": {
52275227
"kernelspec": {
5228-
"display_name": "python3",
5228+
"display_name": "Python 3 (ipykernel)",
52295229
"language": "python",
52305230
"name": "python3"
5231+
},
5232+
"language_info": {
5233+
"codemirror_mode": {
5234+
"name": "ipython",
5235+
"version": 3
5236+
},
5237+
"file_extension": ".py",
5238+
"mimetype": "text/x-python",
5239+
"name": "python",
5240+
"nbconvert_exporter": "python",
5241+
"pygments_lexer": "ipython3",
5242+
"version": "3.12.8"
52315243
}
52325244
},
52335245
"nbformat": 4,

0 commit comments

Comments
 (0)