poem
poem copied to clipboard
The api doc request response 502 when set the host `0.0.0.0`
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
- OpenApiService::new(...)..server("http://0.0.0.0:8080")
Specifications
- Version: poem-openai 5.0.2
- Platform:
- Subsystem: