mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #56] [MERGED] fix: JannyAI imports now include full character definitions #4425
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/56
Author: @LukaTheHero
Created: 4/4/2026
Status: ✅ Merged
Merged: 4/4/2026
Merged by: @LukaTheHero
Base:
main← Head:fix/janny-import-details📝 Commits (1)
ee74166fix: JannyAI character imports now include full definitions📊 Changes
2 files changed (+213 additions, -1 deletions)
View changed files
📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+95 -1)📝
packages/server/src/routes/bot-browser-janny.routes.ts(+118 -0)📄 Description
Bug Fix
JannyAI character imports were only importing the name, avatar, and tags — the actual character definition (personality, first message, scenario, example dialogs) was missing because
fetchDetailreturnednull.Problem
JannyAI's MeiliSearch API only returns basic metadata (name, description tagline, avatar, tags, tokens). The full character definition fields (personality, firstMessage, scenario, exampleDialogs) are only available on the character's HTML page, embedded in Astro island props.
Solution
Added a multi-strategy approach to fetch full character details:
/api/bot-browser/janny/character/:id) — attempts to fetch the JannyAI character page directly and via corsproxy.io, then parses the Astro island props to extract the full definitionThis matches the same approach used by the SillyTavern Character Library plugin, which also uses multiple proxy strategies with graceful fallback.
Files Changed
packages/server/src/routes/bot-browser-janny.routes.ts— Added/janny/character/:idroute with Astro prop parsing and dual fetch strategypackages/client/src/components/bot-browser/BotBrowserView.tsx— Updated JannyAIfetchDetailwith 3-tier fallback (server proxy → client corsproxy → search data)Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.