feat: add LLM import pipeline with file upload and text input
This commit is contained in:
+8
-2
@@ -83,6 +83,12 @@ main = do
|
||||
putStrLn $ "[roux] config file: " <> optConfigFile opts
|
||||
|
||||
-- Load config (file may be missing; LLM features disabled gracefully)
|
||||
_config <- Config.loadConfig (optConfigFile opts)
|
||||
waiApp <- Roux.app (optRecipeDir opts)
|
||||
configResult <- Config.loadConfig (optConfigFile opts)
|
||||
let config = case configResult of
|
||||
Right cfg -> cfg
|
||||
Left _ -> Config.RouxConfig Nothing
|
||||
case configResult of
|
||||
Left err -> putStrLn $ "[roux] warning: " <> err <> " — LLM features disabled"
|
||||
Right _ -> pure ()
|
||||
waiApp <- Roux.app (optRecipeDir opts) config
|
||||
Warp.runSettings settings waiApp
|
||||
|
||||
Reference in New Issue
Block a user