[GH-ISSUE #7732] Why is the generated content missing when reader 1.5b processes html #51446

Closed
opened 2026-04-28 20:11:28 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @gubinjie on GitHub (Nov 19, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7732

info = '''<body class="body-color"> 
<div class="p14-product-2-list"> 
   
   <dl> 
    <dt> 
     <a href="https://www." target="_blank" title="651524 200mah " src="https://www.16b1_140.jpg" title="651524"> </a> 
    </dt> 
    <dd> 
     <h4><a href="https://w524.html" target="_blank" title="651524 20</a></h4> 
     <div class="p14-product-2-desc">
       test
     </div> 
    </dd> 
   </dl>
...........
 </div> </body>'''


import requests 
url = "http://127.0.0.1:1434/api/generate" 
data = {
    "model": "reader-lm:1.5b",
    "prompt": info,
    "stream": False,
    "options": {
        "temperature": 0
    }
}

try:
    response = requests.post(url, json=data)
    if response.status_code == 200:
        print("Response:", response.json())
    else:
        print("Failed with status code:", response.status_code)
        print("Error:", response.text)
except Exception as e:
    print("Error occurred:", e)

There are four DL lists in the incoming HTML, but after the conversion, only fewer DL lists appear

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

ollama version is 0.4.1

Originally created by @gubinjie on GitHub (Nov 19, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7732 ``` info = '''<body class="body-color"> <div class="p14-product-2-list"> <dl> <dt> <a href="https://www." target="_blank" title="651524 200mah " src="https://www.16b1_140.jpg" title="651524"> </a> </dt> <dd> <h4><a href="https://w524.html" target="_blank" title="651524 20</a></h4> <div class="p14-product-2-desc"> test </div> </dd> </dl> ........... </div> </body>''' import requests url = "http://127.0.0.1:1434/api/generate" data = { "model": "reader-lm:1.5b", "prompt": info, "stream": False, "options": { "temperature": 0 } } try: response = requests.post(url, json=data) if response.status_code == 200: print("Response:", response.json()) else: print("Failed with status code:", response.status_code) print("Error:", response.text) except Exception as e: print("Error occurred:", e) ``` There are four DL lists in the incoming HTML, but after the conversion, only fewer DL lists appear ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version ollama version is 0.4.1
GiteaMirror added the bug label 2026-04-28 20:11:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#51446