This topic is locked

Openai API

11/2/2024 11:09:58 AM
PHPRunner General questions
lefty author

Has Anyone tried to incorporate a chatbot using openai API along with PHPrunner 10.9 or 11 Rest API's.
I want to use it in conjunction with my documentation for my web application made with PHPRunner.

C
Chris Whitehead 11/2/2024

At work I've used tawk.to, easy to drop in and it's all free. I'm not sure about the AI aspect but it might be worth a look.

lefty author 11/2/2024

Thanks,
Chris . Yes I have looked at similar options like the one you mentioned. I am looking to use AI , as if I can get this running for a chatbot in PHPrunner , I want to also use Dalle-E for generative images in my
web application. The problem with chatbots is they cannot scrape a security based web application on each call that's why I need to get into the PHPRunner Build.

As far as the issue with REST api , the PHPrunner documentation compared to the OpenAI API don't jive. In PHPrunner , when you use List operation you usually use GET, but openai API wants me to use PUT in
the operation which results in error in PHPRunner when I Run Request. I am missing something in the REST API in version 10.9 on the parameters and values that is required by the Chatgpt API documentation and
the code generated by the REST API wizard. Not sure if this will work and have not found anybody here who even has tried it? It's easy to use a list operation with an endpoint for most API's out there , but when it comes to openai API it's a bit complicated?

Sergey Kornilov admin 11/5/2024

We had two DevClub recently dedicated to OpenAI use, one was related to building SQL queries based on natural language prompts and another one dedicated to image generation.

https://xlinesoft.com/devclub

lefty author 11/5/2024

Although, The Rest API View works really well for retrieving data endpoints, I found that the use of the openai API , is better suited to build a regular table , and have an input field , and use Before Display and/or After record added events to include the functions with the headers using Curl and parse the JSON data retrieved from the API. I am still testing and will provide some samples when finished.

Thanks for the reply