# Llama-3.1-sonar-small-128k-online not using web look-up

**URL:** <https://community.perplexity.ai/t/llama-3-1-sonar-small-128k-online-not-using-web-look-up/76>\
**Category:** Bug Reports\
**Created:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/llama-3-1-sonar-small-128k-online-not-using-web-look-up/76 "2025-05-15T00:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/llama-3-1-sonar-small-128k-online-not-using-web-look-up/76/1 "2025-05-15T00:13:39Z")

</div>

I cannot get llama-3.1-sonar-small-128k-online to perform web look-ups, and it always produces results stating it is “unable to search the internet in real-time or access specific company databases directly”, is it possible to fix?

```
     `response = self.client.chat.completions.create(
            model="llama-3.1-sonar-small-128k-online",
            messages=[
                {
                    "role": "system",
                    "content": system_prompt
                },
                {
                    "role": "user",
                    "content": prompt
                }
            ],
            temperature=0.3,
            max_tokens=1000
        )`

```

`def __init__ (self, api_key: str): self.client = OpenAI(api_key=api_key, base_url="https://api.perplexity.ai")`

It is fairly disappointing compared to what the UI offers, although I understand the two not aligning as explained in the FAQ, I’d still expect the API to perform web look-ups to retrieve information.

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:13am UTC](https://community.perplexity.ai/t/llama-3-1-sonar-small-128k-online-not-using-web-look-up/76/2 "2025-05-15T00:13:41Z")

</div>

What is your prompt? This should not be happening.
