# HarnessOpenAiModelConfigProperty

- Source: Generated code
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';

declare const additionalParams: any;
const harnessOpenAiModelConfigProperty: bedrockagentcore.CfnHarness.HarnessOpenAiModelConfigProperty = {
  apiKeyArn: 'apiKeyArn',
  modelId: 'modelId',

  // the properties below are optional
  additionalParams: additionalParams,
  apiBase: 'apiBase',
  apiFormat: 'apiFormat',
  maxTokens: 123,
  temperature: 123,
  topP: 123,
};
```

## Properties

- `additionalParams`: any — Provider-specific parameters passed through to the model provider unchanged.

- `apiBase`: string — Optional custom endpoint URL for an OpenAI-compatible endpoint.

- `apiFormat`: string

- `apiKeyArn`: string (required)

- `maxTokens`: number

- `modelId`: string (required)

- `temperature`: number

- `topP`: number
