@realtimex/folio 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +1 -0
- package/api/src/routes/ingestions.ts +2 -5
- package/api/src/routes/settings.ts +2 -0
- package/api/src/services/IngestionService.ts +430 -181
- package/api/src/services/ModelCapabilityService.ts +32 -5
- package/api/src/services/supabase.ts +2 -0
- package/dist/api/src/routes/ingestions.js +2 -5
- package/dist/api/src/routes/settings.js +2 -0
- package/dist/api/src/services/IngestionService.js +384 -173
- package/dist/api/src/services/ModelCapabilityService.js +24 -5
- package/dist/assets/index-aI2VZJFA.js +113 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/supabase/functions/api-v1-settings/index.ts +2 -0
- package/supabase/migrations/20260302000000_add_ingestion_llm_settings.sql +12 -0
- package/dist/assets/index-tVGLBfz6.js +0 -113
package/.env.example
CHANGED
|
@@ -209,14 +209,11 @@ router.post(
|
|
|
209
209
|
}
|
|
210
210
|
const { data: settingsRow } = await req.supabase
|
|
211
211
|
.from("user_settings")
|
|
212
|
-
.select("llm_provider, llm_model")
|
|
212
|
+
.select("llm_provider, llm_model, ingestion_llm_provider, ingestion_llm_model")
|
|
213
213
|
.eq("user_id", req.user.id)
|
|
214
214
|
.maybeSingle();
|
|
215
215
|
|
|
216
|
-
const llmSettings =
|
|
217
|
-
llm_provider: settingsRow?.llm_provider ?? undefined,
|
|
218
|
-
llm_model: settingsRow?.llm_model ?? undefined,
|
|
219
|
-
};
|
|
216
|
+
const llmSettings = IngestionService.resolveIngestionLlmSettings(settingsRow);
|
|
220
217
|
|
|
221
218
|
const summary = await IngestionService.summarize(
|
|
222
219
|
req.params["id"] as string,
|
|
@@ -36,6 +36,8 @@ router.patch("/", asyncHandler(async (req, res) => {
|
|
|
36
36
|
const payload = {
|
|
37
37
|
llm_provider: body.llm_provider,
|
|
38
38
|
llm_model: body.llm_model,
|
|
39
|
+
ingestion_llm_provider: body.ingestion_llm_provider,
|
|
40
|
+
ingestion_llm_model: body.ingestion_llm_model,
|
|
39
41
|
sync_interval_minutes: body.sync_interval_minutes,
|
|
40
42
|
tts_auto_play: body.tts_auto_play,
|
|
41
43
|
tts_provider: body.tts_provider,
|