poem icon indicating copy to clipboard operation
poem copied to clipboard

The api doc request response 502 when set the host `0.0.0.0`

Open zhuyu4839 opened this issue 8 months ago • 1 comments

Expected Behavior

The api doc output should be:

<div class="servers">
 <label for="servers">
  <select>
   <option value="http://127.0.0.1:xxx/xxx">http://127.0.0.1:xxx/xxx</option>
  </select>
 </label>
</div>

or

<div class="servers">
 <label for="servers">
  <select>
   <option value="http://pc-ip:xxx/xxx">http://pc-ip:xxx/xxx</option>
  </select>
 </label>
</div>

Actual Behavior

<div class="servers">
 <label for="servers">
  <select>
   <option value="http://0.0.0.0:xxx/xxx">http://0.0.0.0:xxx/xxx</option>
  </select>
 </label>
</div>

Steps to Reproduce the Problem

  1. OpenApiService::new(...)..server("http://0.0.0.0:8080")

Specifications

  • Version: poem-openai 5.0.2
  • Platform:
  • Subsystem:

zhuyu4839 avatar Jun 06 '24 03:06 zhuyu4839