> This page is for NeMo Fabric, version v0.4.0.
> For other versions, use one of these documentation indexes:
> - Latest (v0.4.0) (default): https://docs.nvidia.com/nemo/fabric/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/fabric/dev/llms.txt
> - v0.5.0: https://docs.nvidia.com/nemo/fabric/v0.5.0/llms.txt
> - v0.4.0: https://docs.nvidia.com/nemo/fabric/v0.4.0/llms.txt
> - v0.3.0: https://docs.nvidia.com/nemo/fabric/v0.3.0/llms.txt
> - v0.2.0: https://docs.nvidia.com/nemo/fabric/v0.2.0/llms.txt
> - v0.1.1: https://docs.nvidia.com/nemo/fabric/v0.1.1/llms.txt
> - v0.1.0: https://docs.nvidia.com/nemo/fabric/v0.1.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/fabric/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/fabric/_mcp/server.

# Struct Model Config

> Model configuration.

Generated from `cargo doc --no-deps -p nemo-fabric-core`.

<pre />

Model configuration.

## Fields

### `provider: String`

Model provider name.

### `model: String`

Provider model identifier.

### `temperature: Option<f64>`

Optional temperature.

### `top_p: Option<f64>`

Optional nucleus sampling probability.

### `max_tokens: Option<u64>`

Optional maximum number of response tokens.

### `api_key_env: Option<String>`

Optional environment variable containing an API key.

### `base_url: Option<String>`

Optional provider endpoint URL.

### `settings: Map<String, Value>`

Provider-specific settings.

### `extensions: BTreeMap<String, Value>`

Additive normalized model fields.

## Trait Implementations

### `impl Clone for ModelConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for ModelConfig`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for ModelConfig`

<pre />

#### `deserialize`

<pre />

### `impl JsonSchema for ModelConfig`

<pre />

#### `schema_name`

<pre />

#### `schema_id`

<pre />

#### `json_schema`

<pre />

#### `inline_schema`

<pre />

### `impl PartialEq for ModelConfig`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for ModelConfig`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for ModelConfig`

<pre />