-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
188 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
from phi.llm.anthropic import Claude | ||
|
||
assistant = Assistant( | ||
llm=Claude(model="claude-3-opus-20240229"), | ||
description="You help people with their health and fitness goals.", | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True, | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) | ||
assistant.print_response("Whats happening in France?", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
from phi.llm.anthropic import Claude | ||
|
||
assistant = Assistant( | ||
llm=Claude(model="claude-3-opus-20240229"), | ||
description="You help people with their health and fitness goals.", | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True, | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) | ||
assistant.print_response("Whats happening in France?", markdown=True, stream=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.anthropic import Claude | ||
|
||
assistant = Assistant( | ||
llm=Claude(model="claude-3-haiku-20240307"), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.anthropic import Claude | ||
|
||
assistant = Assistant( | ||
llm=Claude(model="claude-3-haiku-20240307"), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
from phi.llm.cohere import CohereChat | ||
|
||
assistant = Assistant( | ||
llm=CohereChat(model="command-r"), | ||
description="You help people with their health and fitness goals.", | ||
debug_mode=True, | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True, | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) | ||
assistant.print_response("Whats happening in France?", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
from phi.llm.cohere import CohereChat | ||
|
||
assistant = Assistant( | ||
llm=CohereChat(model="command-r"), | ||
description="You help people with their health and fitness goals.", | ||
debug_mode=True, | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True, | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) | ||
assistant.print_response("Whats happening in France?", markdown=True, stream=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.cohere import CohereChat | ||
|
||
assistant = Assistant( | ||
llm=CohereChat(model="command-r"), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.cohere import CohereChat | ||
|
||
assistant = Assistant( | ||
llm=CohereChat(model="command-r"), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.fireworks import Fireworks | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
|
||
assistant = Assistant( | ||
llm=Fireworks(), | ||
description="You help people with their health and fitness goals.", | ||
llm=Fireworks(), | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) | ||
assistant.print_response("Whats happening in France?", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.fireworks import Fireworks | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
|
||
assistant = Assistant( | ||
llm=Fireworks(), | ||
description="You help people with their health and fitness goals.", | ||
llm=Fireworks(), | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) | ||
assistant.print_response("Whats happening in France?", markdown=True, stream=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.fireworks import Fireworks | ||
|
||
assistant = Assistant( | ||
llm=Fireworks(), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.fireworks import Fireworks | ||
|
||
assistant = Assistant( | ||
llm=Fireworks(), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True, stream=False) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from phi.assistant import Assistant | ||
from phi.tools.duckduckgo import DuckDuckGo | ||
from phi.llm.groq import Groq | ||
|
||
assistant = Assistant( | ||
llm=Groq(model="mixtral-8x7b-32768"), | ||
description="You help people with their health and fitness goals.", | ||
# debug_mode=True, | ||
tools=[DuckDuckGo()], | ||
show_tool_calls=True, | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) | ||
assistant.print_response("Whats happening in France?", markdown=True, stream=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from phi.assistant import Assistant | ||
from phi.llm.groq import Groq | ||
|
||
assistant = Assistant( | ||
llm=Groq(model="mixtral-8x7b-32768"), | ||
description="You help people with their health and fitness goals.", | ||
) | ||
assistant.print_response("Share a quick healthy breakfast recipe.", markdown=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.