Fourth revision: OpenRouter, live tool stages, Explain layout, share sections
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s
- Interactive blocks are encouraged by default; Explain gets a reduced library and never writes practice questions. - Assistant tool steps breathe while running, show live stages from generation and the Python check, and read in the past tense when done. - The assistant asks before searching the web when class materials do not cover a question; clarifying questions list every class's exams and never ask about format (always NCLEX). - Explain opens beside the question from 900px wide, moving the question left while open and back on the next one. - Generate dialog drops the practice set/exam switch (presets cover it) and the Generate buttons lose their icon. - Python check notes are green when every check passed, applied fixes neutral. - Share pages group by exam, then Quizzes, Flashcards, Notes, Class Materials, hiding empty groups; the class page uses the same order. "Documents" is now "Class Materials". - OpenRouter provider replaces the Ollama type; migration 6 turns Ollama connections into OpenAI-compatible ones at /v1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c595e0ff2c
commit
25bc03ea75
45 changed files with 663 additions and 329 deletions
|
|
@ -424,10 +424,27 @@ ALTER TABLE conversations ADD COLUMN settings TEXT NOT NULL DEFAULT '{}';
|
|||
ALTER TABLE classes ADD COLUMN group_label TEXT NOT NULL DEFAULT 'Exam';
|
||||
`;
|
||||
|
||||
/**
|
||||
* Ollama is served through the OpenAI-compatible connection (its /v1 API) now that OpenRouter
|
||||
* has its own type: existing Ollama connections become compatible ones pointing at /v1.
|
||||
*/
|
||||
const revision4 = `
|
||||
UPDATE ai_providers SET
|
||||
kind = 'openai_compatible',
|
||||
base_url = CASE
|
||||
WHEN base_url IS NULL OR trim(base_url) = '' THEN 'http://localhost:11434/v1'
|
||||
WHEN rtrim(trim(base_url), '/') LIKE '%/v1' THEN rtrim(trim(base_url), '/')
|
||||
WHEN rtrim(trim(base_url), '/') LIKE '%/api' THEN substr(rtrim(trim(base_url), '/'), 1, length(rtrim(trim(base_url), '/')) - 4) || '/v1'
|
||||
ELSE rtrim(trim(base_url), '/') || '/v1'
|
||||
END
|
||||
WHERE kind = 'ollama';
|
||||
`;
|
||||
|
||||
export const MIGRATIONS: Migration[] = [
|
||||
{ id: 1, name: 'init', sql: init },
|
||||
{ id: 2, name: 'embeddings', sql: embeddings },
|
||||
{ id: 3, name: 'revision1', sql: revision1 },
|
||||
{ id: 4, name: 'revision2', sql: revision2 },
|
||||
{ id: 5, name: 'revision3', sql: revision3 },
|
||||
{ id: 6, name: 'revision4', sql: revision4 },
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue