Skip to content

Fix appendPrompt call, Openrouter compat & piper $PATH lookup - #4

Merged
renjfk merged 3 commits into
renjfk:mainfrom
draxxris:openrouter-and-path
Jun 19, 2026
Merged

Fix appendPrompt call, Openrouter compat & piper $PATH lookup#4
renjfk merged 3 commits into
renjfk:mainfrom
draxxris:openrouter-and-path

Conversation

@draxxris

@draxxris draxxris commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

e99078e

Lookup piper binary from user's path, do not assume its in ~/.local/bin/piper

12c5508

Fix appendPrompt call (TUI API change?)

89bd83f

Support Openrouter endpoint for transcription service

Comment thread lib/stt.js
@renjfk

renjfk commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Could you fix the pipeline?

draxxris added 3 commits June 18, 2026 22:35
When sttEndpoint points at openrouter.ai, send the JSON/base64
audio transcription request format instead of multipart upload.
Extracts multipart and OpenRouter request builders and surfaces
invalid-JSON responses with a clear error.
appendPrompt now expects { body: { text } }. Try the new shape
first, fall back to { text } on the legacy validation error, and
throw on any remaining appendPrompt error instead of swallowing it.
@draxxris
draxxris force-pushed the openrouter-and-path branch from 8b14483 to e99078e Compare June 19, 2026 02:36
@draxxris

Copy link
Copy Markdown
Contributor Author

Split the 3 functional changes into 3 separate commits.

Fixed the JS lint/formatting issues in each.

@renjfk
renjfk merged commit a507e9f into renjfk:main Jun 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants