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

# Update project models

> Choose the model and effort for the chat assistant, pull request reviews, or regression reviews, as Settings → Models does.

Only the agents and fields you pass change. A model chosen in the chat composer still wins for that conversation.



## OpenAPI

````yaml /api-reference/api.json patch /v1/projects/{projectShortId}/models
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Scenarios
  - name: Crawling
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
  - name: Integrations
paths:
  /v1/projects/{projectShortId}/models:
    patch:
      tags:
        - Projects
      summary: Update project models
      description: >-
        Choose the model and effort for the chat assistant, pull request
        reviews, or regression reviews, as Settings → Models does.


        Only the agents and fields you pass change. A model chosen in the chat
        composer still wins for that conversation.
      operationId: UpdateProjectModels
      parameters:
        - name: projectShortId
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ProjectShortId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectModelsRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateProjectModelsResponse'
components:
  schemas:
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    UpdateProjectModelsRequest:
      type: object
      properties:
        chatAssistant:
          allOf:
            - $ref: '#/components/schemas/UpdateProjectModelSetting'
          description: Chat assistant model and effort.
        pullRequest:
          allOf:
            - $ref: '#/components/schemas/UpdateProjectModelSetting'
          description: Pull request review model and effort.
        regressionReview:
          allOf:
            - $ref: '#/components/schemas/UpdateProjectModelSetting'
          description: Regression review model and effort.
      description: Agents to change. Only the agents you pass change.
    UpdateProjectModelsResponse:
      type: object
      required:
        - models
      properties:
        models:
          $ref: '#/components/schemas/ProjectModels'
    UpdateProjectModelSetting:
      type: object
      properties:
        model:
          type: string
          description: Model id from `availableModels`, or `auto`.
        effort:
          allOf:
            - $ref: '#/components/schemas/ModelEffort'
          description: >-
            Must be one of the model's `effortOptions`. When omitted, the
            current effort is kept if the model supports it, otherwise the
            model's default.
      description: Fields to change on one agent. Only the fields you pass change.
    ProjectModels:
      type: object
      required:
        - chatAssistant
        - pullRequest
        - regressionReview
      properties:
        chatAssistant:
          allOf:
            - $ref: '#/components/schemas/ProjectModelSetting'
          description: Chat assistant, used when a conversation has not chosen a model.
        pullRequest:
          allOf:
            - $ref: '#/components/schemas/ProjectModelSetting'
          description: >-
            Pull request reviews started from GitHub, the API, or the pull
            request list.
        regressionReview:
          allOf:
            - $ref: '#/components/schemas/ProjectModelSetting'
          description: >-
            Test plan reviews started outside the chat composer: Run Tests,
            schedules, CI, the API, or automations.
      description: Model per project agent, as Settings → Models shows.
    ModelEffort:
      type: string
      enum:
        - none
        - low
        - medium
        - high
        - xhigh
        - max
      description: >-
        Thinking effort. Each model supports a subset; see `effortOptions` on
        `availableModels`.
    ProjectModelSetting:
      type: object
      required:
        - model
        - effectiveModel
        - effort
      properties:
        model:
          type: string
          description: Selected model id, or `auto` for the QA.tech default for this agent.
        effectiveModel:
          type: string
          description: >-
            Model that runs: the selected model, or the current default when
            `model` is `auto`.
        effort:
          $ref: '#/components/schemas/ModelEffort'
      description: Model and effort one project agent uses.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

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