-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make OpenAI and Groq and OpenAILike into the new structure
- Loading branch information
Showing
10 changed files
with
618 additions
and
706 deletions.
There are no files selected for viewing
Empty file.
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,12 @@ | ||
import asyncio | ||
|
||
from agno.agent import Agent | ||
from agno.models.azure import AzureOpenAI | ||
|
||
agent = Agent( | ||
model=AzureOpenAI(id="gpt-4o"), | ||
description="You help people with their health and fitness goals.", | ||
instructions=["Recipes should be under 5 ingredients"], | ||
) | ||
# -*- Print a response to the cli | ||
asyncio.run(agent.aprint_response("Share a 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,14 @@ | ||
import asyncio | ||
|
||
from agno.agent import Agent | ||
from agno.models.azure import AzureOpenAI | ||
|
||
assistant = Agent( | ||
model=AzureOpenAI(id="gpt-4o"), | ||
description="You help people with their health and fitness goals.", | ||
instructions=["Recipes should be under 5 ingredients"], | ||
) | ||
# -*- Print a response to the cli | ||
asyncio.run( | ||
assistant.aprint_response("Share a breakfast recipe.", markdown=True, stream=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
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
Oops, something went wrong.