sitcom_simulator.script.integrations.chatgpt.chatgpt

Functions

chat(prompt[, max_tokens, temperature, model])

Given a prompt, returns a response from ChatGPT.

sitcom_simulator.script.integrations.chatgpt.chatgpt.chat(prompt, max_tokens=2048, temperature=1, model='gpt-4o-mini')

Given a prompt, returns a response from ChatGPT.

Parameters:
  • prompt (str) – The prompt for the chat

  • max_tokens (int) – The maximum number of tokens to generate

  • temperature (float) – The temperature to use when generating the response, which controls randomness. Higher values make the response more random, while lower values make the response more deterministic.

  • model (str) – The model to use for the chat