You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you so much @mridula-plivo for suggesting Cerebras AI inference support! It's really valuable when our users share ideas for integrations that could make our product more powerful. I've noted this suggestion and will share it internally with the team.
Hi @mridula-plivo, You can run the Cerebras API with the following Code Snippet:
from os import getenv
from phi.agent import Agent, RunResponse
from phi.model.openai.like import OpenAILike
agent = Agent(
model=OpenAILike(
id="llama-3.3-70b",
api_key=getenv("CEREBRAS_API_KEY"),
base_url="https://api.cerebras.ai/v1",
)
)
# Get the response in a variable
# run: RunResponse = agent.run("Share a 2 sentence horror story.")
# print(run.content)
# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story.")
Can you also add support for AI inference with Cerebras?
https://inference-docs.cerebras.ai/introduction?_gl=1*1bp8hjp*_ga*NTgyNDE2ODgyLjE3MzIxMDY5MTM.*_ga_M90K89G16V*MTczMjE2NTE4My4yLjEuMTczMjE2NTQyMy4wLjAuMA..
The text was updated successfully, but these errors were encountered: