Conversation
Add a published editor schema, persist explicit compatibility traits, and include generated SQLite and Postgres migrations.
Drops borrowed openrouter piAiProvider; documents chat/messages/responses on https://api.neuralwatt.com/v1 with inline reasoning quirks and autoCompat, backed by official docs and endpoint probes.
|
🔍 OpenCodeReview found 2 issue(s) in this PR.
|
| pi_ai_provider: raw || undefined, | ||
| pi_ai_quirks: raw ? undefined : editingProvider.pi_ai_quirks, |
There was a problem hiding this comment.
Inline quirks can be lost for good. Nothing in the UI shows or edits them; the only sign they exist is the "inline quirks active" label. In this custom text input, typing a single character sets pi_ai_quirks to undefined. Deleting the text afterwards doesn't bring them back, because editingProvider.pi_ai_quirks is already gone. The <select> handler above has the same problem. On save, saveProvider sends pi_ai_quirks: null, and the PATCH route then deletes the stored quirks. For an existing provider, a stray keystroke or dropdown click wipes the quirks with no way to recover them in the UI. Suggested fix: keep the original quirks in a ref and restore them when the provider field is cleared, or ask for confirmation before replacing them. Pull this logic into one helper shared by both handlers so they don't drift apart.
| {selectedPreset.piAiProvider ? ( | ||
| <> | ||
| Uses the pi-ai <code className="text-primary">{selectedPreset.piAiProvider}</code>{' '} | ||
| catalog; auto-compat requires a matching model ID. | ||
| </> | ||
| ) : selectedPreset.piAiQuirks ? ( |
🔍 OpenCodeReview — detailed findings✅ Passing — no critical/high findings. Reviewed 35 file(s), 2 finding(s) total.
|
Overview
Provider presets can now describe compatibility behavior for services that are not in the pi-ai catalog, without borrowing another provider's identity. Selecting a preset can carry those settings into a provider, while presets without compatibility settings still work as ordinary endpoint shortcuts.
✨ New Features
🐛 Bug Fixes
🔧 Improvements
Testing
Notes