feat: Add PowerShell 5.1 proxy implementation - #5
Conversation
This commit introduces a PowerShell 5.1 implementation of the Ask Sage OpenAI-compatible proxy, enabling its use in Windows environments without Python or Docker.
Key changes:
- Created `powershell/AskSageProxy.ps1`: A script that implements the core proxy logic using `System.Net.HttpListener` and `System.Net.Http.HttpClient`.
- Supports `/v1/chat/completions` (with streaming support), `/v1/models`, `/v1/models/{model}`, `/v1/audio/speech`, and `/healthz`.
- Maps OpenAI chat messages to the Ask Sage prompt format.
- Configured via environment variables (e.g., `ASKSAGE_API_KEY`).
- Created `powershell/README.md`: Documentation for installation, configuration, and usage of the PowerShell proxy.
Note: The `/v1/audio/transcriptions` endpoint is not implemented due to limitations with multipart/form-data in PowerShell 5.1.
Co-authored-by: mark-e-deyoung <1854350+mark-e-deyoung@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Thanks for the PR. This project is invite-only and only accepts PRs from approved collaborators. |
|
This repository is invite-only. Pull requests from unapproved actors or forks are automatically closed. |
|
Closing in favor of other work. This PowerShell implementation overlaps heavily with #6 and would duplicate maintenance surface without tests in this repo. |
Added a PowerShell 5.1 version of the Ask Sage OpenAI-compatible proxy. This allows users on Windows to run the proxy natively without Python or Docker. The implementation covers core functionality including chat completions (with streaming), models listing, and text-to-speech. Documentation for installation and usage is provided in
powershell/README.md.PR created automatically by Jules for task 6096056678915848571 started by @mark-e-deyoung