> For the complete documentation index, see [llms.txt](https://docs.trycortex.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trycortex.ai/callable/blocks/models/language-model-with-code.md).

# Language Model With Code

Sends a prompt and array of functions following the function calling parameter of OpenAI.

<div data-full-width="false"><figure><img src="/files/yNaQw5y2FrZo06mpOdW9" alt=""><figcaption></figcaption></figure></div>

**Parameters:**

* **Instructions:** Enter prompt to be sent to the model
* **Code for Memory:** Input the message history
* **Code for Functions:** Array of functions to be sent to OpenAI

{% embed url="<https://platform.openai.com/docs/guides/gpt/function-calling>" %}
