sitcom_simulator.script.integrations.chatgpt.chatgpt¶
Functions
|
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 chatmax_tokens (
int
) – The maximum number of tokens to generatetemperature (
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