> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jedify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Models

> Choose which models answer Jedify: the release's Gemini on Vertex AI, or your own choice of Bedrock, Azure, Anthropic or your own gateway.

Jedify asks for models by name, always through one model gateway in the cluster, LiteLLM. `spec.models` in your Jedify resource decides which provider and model answers each name. The operator writes the gateway's configuration from it, and checks every route.

## The release's models

Without `models` in your resource, every name goes to Gemini on Vertex AI in your own project:

| Names | Model |
| - | - |
| The application's reasoning and SQL names, such as `claude-sonnet-5-5` | `gemini-2.5-pro` |
| The fast names, such as `claude-haiku-5-5`, and any name the list lacks | `gemini-2.5-flash` |
| `text-embedding-ada-002`, the embedding name | `gemini-embedding-001` |

The gateway calls Vertex AI as its own service account, so there is no key.

## Route models yourself

```yaml theme={null}
spec:
  models:
    providers:
      - name: bedrock
        bedrock:
          region: us-east-1
          credentials:
            accessKeyId:
              externalSecret: { remoteRef: { key: jedify-bedrock-access-key-id } }
            secretAccessKey:
              externalSecret: { remoteRef: { key: jedify-bedrock-secret-access-key } }
      - name: vertex
        vertex: { project: acme-jedify, location: us-central1 }
    # every chat name no route has
    default: { provider: bedrock, model: <model ID> }
    routes:
      - { name: claude-sonnet-5-5, provider: bedrock, model: <model ID> }
      - { name: claude-haiku-5-5, provider: bedrock, model: <model ID> }
      - name: text-embedding-ada-002
        kind: embedding
        provider: vertex
        model: gemini-embedding-001
```

* **A route** sends one name, exactly as the application asks for it, to a provider's model: a model ID, an inference profile or a deployment name, as that provider names it.
* **`default`** serves every chat name no route has, so a name a new release adds is served rather than refused.
* **Embeddings need a route of their own**, with `kind: embedding`. The default never serves one, because an embedding model fixes the size of the vectors Jedify stores.
* **Give the agent's names a route each**: `claude-sonnet-5-5` answers agent turns, and `claude-haiku-5-5` runs fast steps. Without a route, your default model serves them.

> [!WARNING]
>
> Choose the model behind `text-embedding-ada-002` before anyone asks Jedify a question, and keep it. Jedify stores vectors from it, and moving to another embedding model means building them all again.

## Providers

Each provider has exactly one kind:

| Kind | Settings | Signs in with |
| - | - | - |
| `vertex` | `project`, `location` | The gateway's own service account. Or `credentials`: a service account key. |
| `bedrock` | `region`, and optionally `roleArn` | `credentials`: an IAM user's access key. |
| `openai` | `url` (leave it out for OpenAI itself), and optionally `ca` | `apiKey` |
| `azureFoundry` | `url` | `apiKey` |
| `azureOpenAI` | `url`, `apiVersion` | `apiKey` |
| `anthropic` | optionally `url` | `apiKey` |

Every credential is a key of a Secret in the `jedify` namespace, or a secret in your secret manager. See [Credentials](https://docs.jedify.com/self-hosted/gcp/configure/credentials.md). No credential ever appears in the gateway's configuration.

> [!NOTE]
>
> On Google Cloud, give Bedrock an access key. Without `credentials`, the gateway would use the identity its pod runs as, which is a Google identity that AWS doesn't accept.

## Bedrock in another AWS account

New in 2026.12.9. If your models live in a central AWS account, set `roleArn`, and the gateway calls Bedrock as that role:

```yaml theme={null}
spec:
  models:
    providers:
      - name: bedrock-central
        bedrock:
          region: us-east-1
          roleArn: arn:aws:iam::444455556666:role/jedify-bedrock
          # a Secret in jedify with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
          credentials: { secretName: jedify-bedrock-key }
```

The gateway assumes the role with the access key. It needs two grants:

* The access key's IAM user may call `sts:AssumeRole` on the role.
* The role's trust policy allows that user. The role itself may invoke the models.

The models account's CloudTrail shows the calls under the session name `jedify-litellm`.

## Your own gateway

Send calls to a gateway you already run, as an `openai` provider:

```yaml theme={null}
spec:
  models:
    providers:
      - name: corp-gateway
        openai:
          url: https://gateway.acme.com/v1
          apiKey: { name: model-gateway, key: api-key }
          # only if a private certificate authority signed the gateway's certificate
          ca: { name: model-gateway-ca, key: ca.pem }
```

`url` is the part before `/chat/completions`. The cluster must reach it: allow it out of your network.

> [!NOTE]
>
> If your gateway serves GPT-5.x models, turn reasoning off for the fast names (`gpt-5.6-terra`, `gpt-5.6-sol`, and the per-step names such as `entity_classification_1`) in the gateway's own configuration, with `reasoning_effort: none`. A GPT-5.x model reasons unless told not to, which turns a call of about 1.5 seconds into 5 to 12.

## Check it

On every check, the operator calls each route, and the default, with the application's own settings. Condition `ModelGatewayReady` is `True` when all of them answer:

```sh theme={null}
kubectl -n jedify get jedify jedify \
  -o jsonpath='{range .status.models[*]}{.name}{"\t"}{.answered}{"\t"}{.httpStatus}{"\t"}{.message}{"\n"}{end}'
```

Each line is a name, whether the gateway answered, its HTTP status, and why a call failed. To call one name now:

```sh theme={null}
kubectl -n jedify exec deploy/jedify-operator -- \
  /jedify-operator doctor --model claude-sonnet-5-5
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.