> 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="https://3035252822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeiBCAl6qTuG0sZpeXLxC%2Fuploads%2FvijK3OW6s0UPZBtmGT6f%2FScreenshot%202023-07-21%20at%204.52.48%20PM.png?alt=media&amp;token=93df437d-db01-4790-b2a5-02d2ad29619d" 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>" %}
