Skip to content

Commit

Permalink
Update Perplexity example in documentation (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
abromberg authored Nov 21, 2024
1 parent c119230 commit f8ca49d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/concepts/llms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ These are examples of how to configure LLMs for your agent.
from crewai import LLM

llm = LLM(
model="perplexity/mistral-7b-instruct",
base_url="https://api.perplexity.ai/v1",
model="llama-3.1-sonar-large-128k-online",
base_url="https://api.perplexity.ai/",
api_key="your-api-key-here"
)
agent = Agent(llm=llm, ...)
Expand Down Expand Up @@ -400,4 +400,4 @@ This is particularly useful when working with OpenAI-compatible APIs or when you
- **API Errors**: Check your API key, network connection, and rate limits.
- **Unexpected Outputs**: Refine your prompts and adjust temperature or top_p.
- **Performance Issues**: Consider using a more powerful model or optimizing your queries.
- **Timeout Errors**: Increase the `timeout` parameter or optimize your input.
- **Timeout Errors**: Increase the `timeout` parameter or optimize your input.

0 comments on commit f8ca49d

Please sign in to comment.