{"repo":"omnifaces/omnihai","free":true,"listed":false,"github":"https://github.com/omnifaces/omnihai","clone":"git clone https://github.com/omnifaces/omnihai.git","description":"One API, any AI","language":"Java","stars":35,"topics":["ai-library","ai-utility","anthropic","balusc","gemini","generative-ai","grok","jakarta-ee","java","java-ai"],"license":null,"category":"ai-agents","readme_excerpt":"OmniHai One API, any AI A unified Java AI utility library, with first-class Jakarta EE and MicroProfile integration. Overview OmniHai provides a single, consistent API to interact with multiple AI providers. It achieves that by interacting with their REST API endpoints directly. Minimum Requirements - Java 17 - A JSON-P implementation That is the only hard requirement. CDI, EL and MP Config are optional and only needed for the @AI injection features. Jakarta EE 11 and MicroProfile 7 runtimes already provide all four, so nothing needs to be added there. Installation That's all for Jakarta EE / MicroProfile runtimes. No additional dependencies needed. Servlet containers On a bare servlet container such as Tomcat, add JSON-P and optionally CDI / MP Config: Plain Java SE OmniHai runs on plain Java SE too. The programmatic API needs nothing but a JSON-P implementation: The @AI injection features work on Java SE as well, via Weld SE. See CDI on plain Java SE. CDI on plain Java SE Add Weld SE, the standalone CDI implementation, next to JSON-P: Weld only discovers beans in archives which carry a META-INF/beans.xml , so add one to your own module: Then bootstrap the container and inject as usual: @AITool methods on CDI beans are discovered and invoked exactly as in a container. EL expressions in @AI attributes additionally need Weld's EL module and an EL implementation, as weld-se-core ships neither: MicroProfile Config expressions additionally need an MP Config implementation and a M","default_branch":null,"files":null,"tree":[],"storefront":"/r/omnifaces","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/omnifaces/omnihai/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}