init.agi 872 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. AI Chat — LM Studio style conversation demo
  3. ===========================================
  4. A demo WebApp that talks to any OpenAI-compatible endpoint through the
  5. AGI "llm" library. Configure the endpoint, API key, default model and
  6. per-model pricing in:
  7. System Settings > AI Integration > AI Model
  8. Backend scripts (next to this init.agi):
  9. backend/chat.agi relays a conversation to llm.request()
  10. backend/models.agi returns the configured models + default model
  11. */
  12. var moduleLaunchInfo = {
  13. Name: "AI Chat",
  14. Desc: "Chat with any OpenAI-compatible model, LM Studio style",
  15. Group: "Office",
  16. IconPath: "AIChat/img/icon.svg",
  17. Version: "1.0",
  18. StartDir: "AIChat/index.html",
  19. SupportFW: true,
  20. LaunchFWDir: "AIChat/index.html",
  21. SupportEmb: false,
  22. InitFWSize: [1080, 720],
  23. SupportedExt: []
  24. }
  25. registerModule(JSON.stringify(moduleLaunchInfo));