> ## Documentation Index
> Fetch the complete documentation index at: https://interlocklabsinc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM

### get\_model

<ResponseField name="" type="string">
  Returns the language model that this LLM is using.

  Should be one of `["gpt-4",
        "gpt-4-0613",
        "gpt-4-32k",
        "gpt-4-32k-0613",
        "gpt-3.5-turbo",
        "gpt-3.5-turbo-0613",
        "gpt-3.5-turbo-16k",
        "gpt-3.5-turbo-16k-0613"]`
</ResponseField>

### get\_messages

<ResponseField name="" type="list[dict]">
  Returns the list of messages in OpenAI message format.
</ResponseField>

### get\_max\_retries

<ResponseField name="" type="int">
  Returns the maximum number of retries for this LLM when handling errors.
</ResponseField>

### get\_retry\_delay

<ResponseField name="" type="int">
  Returns the number of seconds to wait before retrying when handling errors.
</ResponseField>

### get\_rate\_limit\_delay

<ResponseField name="" type="string">
  Returns the number of seconds to wait before retrying when handling rate limit error.
</ResponseField>

### set\_model

<ParamField body="model" type="string" required>
  Sets the model that this LLM will use.

  Should be one of `["gpt-4",
        "gpt-4-0613",
        "gpt-4-32k",
        "gpt-4-32k-0613",
        "gpt-3.5-turbo",
        "gpt-3.5-turbo-0613",
        "gpt-3.5-turbo-16k",
        "gpt-3.5-turbo-16k-0613"]`
</ParamField>

### set\_messages

<ParamField body="messages" type="list[dict]" required>
  Sets the list of messages in OpenAI message format.
</ParamField>

### set\_max\_retries

<ParamField body="max_retries" type="int" required>
  Sets the maximum number of retries for this LLM when handling errors.
</ParamField>

### set\_retry\_delay

<ParamField body="retry_delay" type="int" required>
  Sets the number of seconds to wait before retrying when handling errors.
</ParamField>

### set\_rate\_limit\_delay

<ParamField body="rate_limit_delay" type="int" required>
  Sets the number of seconds to wait before retrying when handling rate limit error.
</ParamField>

### execute

Calls OpenAI chat completion. Handles errors and retries automatically.

<ResponseField name="" type="dict">
  Returns the response from the OpenAI API if you want to use it.
</ResponseField>
