ojob.io/ai/openai

Usage

ojob ojob.io/ai/openai op=list apiToken=sk-1234567890 timeout=300000 chat="Hello, I am a human" model=gpt-3.5-turbo temperature=0.7 persona="Always answer with a markdown table" useMD=true 

Description

Interacts with OpenAI API to access GPT like models.

Expects

Name Description
op The operation to perform (e.g. listmodels, chat)
apiToken The OpenAI API token to use (you can use secKey to provide the token)
timeout The timeout to use for the API calls (defaults to 5 minutes)
chat The text to chat with the model
model The model to use (defaults to gpt-3.5-turbo)
temperature The temperature to use (defaults to 0.7)
persona Text describing the persona to use
useMD If true, the output will be in Markdown format