I want to use requesty ai as LLM into the crew using it like this
llm = LLM(
*model*="anthropic/claude-3-7-sonnet-latest",
api_key=“sk-O5aI0kIVRT…….”,
endpoint=“https://router.requesty.ai/v1”,
)
But continuously getting LLM Failed
I want to use requesty ai as LLM into the crew using it like this
llm = LLM(
*model*="anthropic/claude-3-7-sonnet-latest",
api_key=“sk-O5aI0kIVRT…….”,
endpoint=“https://router.requesty.ai/v1”,
)
But continuously getting LLM Failed
Based on this LiteLLM discussion, all you need to do is:
from crewai import LLM
import os
os.environ["REQUESTY_API_KEY"] = "<YOUR-KEY>"
requesty_llm = LLM(
model="anthropic/claude-3-7-sonnet-latest", # Make sure the model name is correct!
api_base="https://router.requesty.ai/v1",
api_key=os.environ["REQUESTY_API_KEY"]
)
Thanks @maxmoura , but getting below error.
litellm.NotFoundError: AnthropicException - 404 page not found