openai

  1. T

    B4J Library OpenAI library

    Hello All, Here is my OpenAI library and example code to interface with the library. I started this on August 11. I started with the library from Blueforcer here: https://www.b4x.com/android/forum/threads/b4x-openai-a-i-text-image-generation.159877/ His example code there was copyrighted. His...
  2. alwaysbusy

    LLM's and the importance of using RAG in the chain

    I have been working on a library to use LLM's (like openAI) in B4J for our company. Using OpenAI is pretty simple to do with their REST API, but it quickly becomes quite costly as they not only make you pay for the output, but also for the input. In comes RAG (Retrieval Augmented Generation). It...
  3. T

    B4J Question Uploading part of a file to OpenAI

    I have been fighting with this problem for 2 days. I have checked every google search result I can find. I am trying to follow the instructions here: https://platform.openai.com/docs/api-reference/uploads/add-part The curl command to upload a part of a file is here: curl...
  4. T

    B4J Question OpenAI Text To Speech Problems [SOLVED]

    I have supplied my code with my OpenAI API key so that it will be simple for anyone to run the code for troubleshooting purposes. I will be removing that key from my OpenAI profile very soon since it can't remain exposed to the public. Hopefully this will make it easier for anyone to assist me...
  5. Jack Cole

    GPT-4 Writes B4X Code

    GPT-4 knows the B4X family of languages. After a bit of back and forth, I got it to write B4J code for calling the OpenAI API. Here is my prompt: I had to tell it to use the JobDone event and to write it for a B4XPage. Finally, it produced this: Sub Class_Globals Private Root As...
Top