# get_llm_kwargs

> **Function** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chains/openai_functions/utils/get_llm_kwargs)

Return the kwargs for the LLMChain constructor.

## Signature

```python
get_llm_kwargs(
    function: dict,
) -> dict
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `function` | `dict` | Yes | The function to use. |

## Returns

`dict`

The kwargs for the LLMChain constructor.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/6fb37dba71da807af60aa7b909f71f0625a666bf/libs/langchain/langchain_classic/chains/openai_functions/utils.py#L29)