wip - trying to connect to OpenAi

This commit is contained in:
Dario Ghunney Ware
2025-11-05 18:03:58 +00:00
parent e142647d8d
commit 5e26decf19
15 changed files with 41 additions and 74 deletions

View File

@@ -591,4 +591,4 @@ Remember, never hard-code text in your templates or Java code. Always use transl
### Chatbot Feature Configuration
- The chatbot backend is disabled unless `premium.proFeatures.chatbot.enabled` is true in `configs/settings.yml`.
- Provide an OpenAI-compatible key through `premium.proFeatures.chatbot.models.apiKey` (preferred) or the `SPRING_AI_OPENAI_API_KEY` environment variable. Without a key the app still boots, but the chatbot beans are not created.
- Provide an OpenAI-compatible key via `SPRING_AI_OPENAI_API_KEY` (or `spring.ai.openai.api-key`) and set `spring.ai.openai.enabled=true` when you want chatbot beans to load. Leaving this property disabled allows the rest of Stirling-PDF to run without AI credentials.