Configuring the AI Service Using a JSON File
Post here questions and problems related to bundled or custom AI actions, connectors and in general configuring and working with the AI Positron Assistant add-ons.
-
jeff_hooker
- Posts: 21
- Joined: Tue Jun 11, 2019 9:01 pm
Configuring the AI Service Using a JSON File
Post by jeff_hooker »
I've found these instructions: https://www.oxygenxml.com/doc/ug-positr ... -file.html
But I can find no way of applying them with a service configured as shown in the attached screen shot: is it even possible?
But I can find no way of applying them with a service configured as shown in the attached screen shot: is it even possible?
AI service.png
You do not have the required permissions to view the files attached to this post.
-
Cosmin Duna
- Site Admin
- Posts: 126
- Joined: Wed Dec 12, 2018 5:33 pm
Re: Configuring the AI Service Using a JSON File
Post by Cosmin Duna »
Hello,
Yes, it is possible, but it only applies to that specific configuration mechanism. The JSON file must match the schema expected by Oxygen and be placed in the right location; otherwise Oxygen won’t load it and the Preferences UI remains unchanged.
A few key points:
Best regards,
Cosmin
Yes, it is possible, but it only applies to that specific configuration mechanism. The JSON file must match the schema expected by Oxygen and be placed in the right location; otherwise Oxygen won’t load it and the Preferences UI remains unchanged.
A few key points:
- The JSON file (typically named ai-service-configuration.json) must be placed in the AI Positron add‑on installation directory. This is the exact directory shown in Preferences > Plugins > Oxygen AI Positron Assistant Enterprise > Location, as described in the documentation. If it’s placed elsewhere, Oxygen will not pick it up.
- When the JSON file is detected and valid, the AI service configuration preferences are hidden because the add‑on has been fully configured from the file. That means you won’t see the standard preferences UI for that service once it’s been applied. This is expected behaviour.
- If your JSON file has syntax errors or doesn’t conform exactly to the expected format, Oxygen will ignore it and the AI Service Configuration preferences page will remain visible. For that reason, open your JSON file directly in Oxygen XML Editor and validate it — Oxygen will report any errors, and invalid JSON is the most common reason the automatic configuration doesn’t work.
- The JSON file wasn’t placed in the correct directory.
- The JSON file is not valid (syntax or structure) and therefore not loaded.
- The file uses the wrong name or doesn’t match the documented schema.
Best regards,
Cosmin
Cosmin Duna
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “Artificial Intelligence (AI Positron Assistant add-on)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service