/OpenAi-Assistants-API-Experiments

My experiments with the OpenAi Assistants API

Primary LanguagePHPMIT LicenseMIT

OpenAi Assistants API Experiments - Javascript and Php

My experiments with the OpenAi Assistants API

These experiments use Javascript and Php to interact with the OpenAi API. This makes it possible to host a web app Assistant on a low cost shared server, because shared servers have Php pre-installed. When using Python, for example, one would need to rent a server and then install Python on it. That server is a lot more expensive and takes more work to set up and maintain.

This is the workflow as quoted in the docs:

  • Create an Assistant in the API by defining its custom instructions and picking a model. If helpful, enable tools like Code Interpreter, Retrieval, and Function calling.
  • Create a Thread when a user starts a conversation.
  • Add Messages to the Thread as the user ask questions.
  • Run the Assistant on the Thread to trigger responses. This automatically calls the relevant tools.

Experiments



Resources