agentscope-ai / agentscope-ai/QwenPaw

[Bug]:window系統使用lmstudio調用本地模型,獲取模型列表報錯502,在mac使用copaw也沒問題,openai庫報錯,我在openclaw就可以正常調用本地的lmstudio模型

Offen
#2,787 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug local model
Vorherrschende Sprache
Python
Sterne
34.9k
Forks
3.1k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
225

Beschreibung

Version
(base) PS C:\work> python -V
Python 3.13.12
(base) PS C:\work> copaw --version
CoPaw, version 1.0.0.post2
(base) PS C:\WINDOWS\system32> pip show openai
Name: openai
Version: 2.30.0
Summary: The official Python library for the openai API
Home-page: https://github.com/openai/openai-python
Author:
Author-email: OpenAI [support@openai.com](mailto:support@openai.com)
License: Apache-2.0
Location: C:\Users\yun\miniconda3\Lib\site-packages
Requires: anyio, distro, httpx, jiter, pydantic, sniffio, tqdm, typing-extensions
Required-by: agentscope, agentscope-runtime, reme_ai
windows10

Description
window系統使用lmstudio調用本地模型,獲取模型列表報錯502,openai庫報錯,我在openclaw就可以正常調用本地的lmstudio模型

Related PR(s): #(optional)

Security considerations: [If applicable, e.g. auth, env/config exposure]

Component(s) Affected

Core / Backend (app, agents, config, providers, utils, local_models)

Console (frontend web UI)

Channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.)

Skills

CLI

Documentation (website)

Tests

CI/CD

Scripts / Deploy
Environment
(base) PS C:\work> python -V
Python 3.13.12
(base) PS C:\work> copaw --version
CoPaw, version 1.0.0.post2
windows10
openai:

Steps to Reproduce
Actual vs Expected
Actual:
Expected:
Logs / Screenshots
[Paste relevant log output or attach screenshots. Use code blocks for logs.]

INFO: 127.0.0.1:51579 - "POST /api/models/lmstudio/test HTTP/1.1" 200 OK
Traceback (most recent call last):
File "C:\Users\yun\miniconda3\Lib\site-packages\copaw\providers\openai_provider.py", line 64, in check_connection
await client.models.list(timeout=timeout)
File "C:\Users\yun\miniconda3\Lib\site-packages\openai\_base_client.py", line 308, in _get_page
return await self._client.request(self._page_cls, self._options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yun\miniconda3\Lib\site-packages\openai\_base_client.py", line 1669, in request
raise self._make_status_error_from_response(err.response) from None
openai.InternalServerError: Error code: 502
Additional Notes
[Optional: workarounds, similar issues, etc.]

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.