Using OpenAI API

Started by Gemini, February 08, 2024, 19:22:03 PM

Previous topic - Next topic

Gemini

Hello,

Is there any way in jArchi to interface with OpenAI API in order to use it for NLP based automated tasks?

Thanks

Phil Beauvoir

jArchi is JavaScript. If you can connect JavaScript to OpenAI then you should be able to do something.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Gemini

Thanks for your reply

Is there any example of using OpenAI API and jArchi together in a simple use case?

Jean-Baptiste Sarrodie

If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Gemini


Gemini

When I run the script at  https://forum.archimatetool.com/index.php?topic=1348, the console produces the error message below, do you have any idea how it can be fixed? I tried to set up java truststore environment for the OpenAI connection, but somehow the error persists.

javax.script.ScriptException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
   at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
   at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
   at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
   at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)