-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Microsoft PowerToys version
0.97.1
Installation method
WinGet
Area(s) with issue?
Advanced Paste
Steps to reproduce
- Install Foundry Local (v0.8.119):
winget install Microsoft.FoundryLocal - Download model:
foundry model download qwen2.5-0.5b - Set fixed port:
foundry service set --port 5273 - Verify service running:
foundry service statusshows "π’ Service is Started on http://127.0.0.1:5273/" - Verify model loaded:
foundry service psshows "π’ qwen2.5-0.5b" - In PowerToys Settings β Advanced Paste β Add Foundry Local provider with model: qwen2.5-0.5b-instruct-openvino-npu:3
- Copy any text to clipboard (e.g., a URL)
- Press Win+Shift+V to open Advanced Paste
- Select any AI action (e.g., custom action or "Paste with AI")
- Error appears: "Failed to generate response using Foundry Local"
Direct API test succeeds:
curl -X POST http://127.0.0.1:5273/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "qwen2.5-0.5b-instruct-openvino-npu:3", "messages": [{"role": "user", "content": "Hello"}]}'
Returns: 200 OK with valid response
βοΈ Expected Behavior
Advanced Paste should successfully call the Foundry Local model and return AI-generated paste content.
β Actual Behavior
400 Bad Request error. PowerToys log shows:
[FoundryLocal] Creating OpenAI client with endpoint: http://127.0.0.1:5273/v1
CustomActionTransformService.TransformAsync failed
AdvancedPaste.Models.PasteActionException: Failed to generate response using Foundry Local (Model: qwen2.5-0.5b-instruct-openvino-npu:3)
Inner exception: System.ClientModel.ClientResultException: Service request failed. Status: 400 (Bad Request)
Additional Information
OS: Windows 11 24H2
Foundry Local Version: 0.8.119
Model: qwen2.5-0.5b-instruct-openvino-npu:3 (Intel NPU via OpenVINO)
Fixed Port: 5273
Hardware: Intel NPU with OpenVINO ExecutionProvider
The model loads successfully and direct REST API calls work. The issue appears to be in how PowerToys formats or sends the chat completion request to Foundry Local.
Other Software
Foundry Local 0.8.119
Model: qwen2.5-0.5b-instruct-openvino-npu:3