Skip to content

Commit

Permalink
Merge pull request #20 from Cyb3rWard0g/fix/openai-toolchoice
Browse files Browse the repository at this point in the history
Fix Structured Output Parsing for Chat Completion Responses and Prepare for v0.9.1 Release
  • Loading branch information
Cyb3rWard0g authored Jan 12, 2025
2 parents af7956e + 15cd5dd commit 391dc33
Show file tree
Hide file tree
Showing 21 changed files with 216 additions and 179 deletions.
17 changes: 17 additions & 0 deletions cookbook/agents/openapi/react_agent_openapi_msgraph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@
"# ReAct OpenAPI MS Graph Agent"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Install Required Libraries\n",
"Before starting, ensure the required libraries are installed:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install floki-ai"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
17 changes: 17 additions & 0 deletions cookbook/agents/weather/react_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@
"# ReAct Weather Agent"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Install Required Libraries\n",
"Before starting, ensure the required libraries are installed:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install floki-ai"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
19 changes: 18 additions & 1 deletion cookbook/agents/weather/toolcall_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@
"# ToolCall Weather Agent"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Install Required Libraries\n",
"Before starting, ensure the required libraries are installed:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install floki-ai"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -248,7 +265,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.12.8"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion cookbook/arxiv_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"outputs": [],
"source": [
"### Install Required Libraries\n",
"!pip install floki\n",
"!pip install floki-ai\n",
"!pip install arxiv"
]
},
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/azure_openai_chat_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/hf_chat_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/nvidia_chat_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/nvidia_chat_structured_output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/nvidia_embeddings_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/openai_audio_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/openai_chat_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
29 changes: 11 additions & 18 deletions cookbook/llm/openai_chat_structured_output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand All @@ -44,7 +44,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 1,
"metadata": {},
"outputs": [
{
Expand All @@ -53,7 +53,7 @@
"True"
]
},
"execution_count": 8,
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -72,7 +72,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -92,7 +92,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -111,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -137,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -160,7 +160,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -186,30 +186,23 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Dog(name='Balto', breed='Siberian Husky', reason=\"Balto is famous for leading a team of sled dogs that delivered life-saving medicine during a diphtheria outbreak in Nome, Alaska, in 1925. His journey through harsh conditions and extreme temperatures was critical in the 'Great Race of Mercy' and helped save many lives.\")"
"Dog(name='Balto', breed='Siberian Husky', reason='Balto was a sled dog who became famous for his role in the 1925 serum run to Nome, Alaska, where he helped deliver a life-saving diphtheria serum across treacherous terrain under severe weather conditions.')"
]
},
"execution_count": 14,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"response"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion cookbook/llm/openai_embeddings_basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki"
"!pip install floki-ai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion cookbook/vectorstores/chroma_openai_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki chromadb"
"!pip install floki-ai chromadb"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki chromadb"
"!pip install floki-ai chromadb"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install floki\n",
"!pip install floki-ai\n",
"!pip install \"psycopg[binary,pool]\" pgvector"
]
},
Expand Down
Loading

0 comments on commit 391dc33

Please sign in to comment.