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

# Retry Language Model Endpoint

> Retry building a failed language model.

    Attempts to reinitialize a language model that previously failed to build.
    This is useful when the underlying service (e.g., OpenAI API, AWS Bedrock)
    was temporarily unavailable during initial startup or configuration.

    The retry clears any previous error state and attempts a fresh build.
    If successful, the model becomes available for use immediately.

    The response indicates the result:
    - `success: true, status: ready`: Model is now available
    - `success: false, status: failed`: Still failing (check error field)

    Returns 404 if the language model is not configured.



## OpenAPI

````yaml /openapi.json post /api/v2/config/resources/language_models/{name}/retry
openapi: 3.1.0
info:
  title: MemMachine API
  version: 0.3.10
  description: >-
    Architectural Memory Systems for AI Agents. Specialized in episodic and
    semantic memory management with strict namespace isolation.
servers:
  - url: http://localhost:8080
security: []
tags:
  - name: Configuration
    description: System overview and memory subsystem configuration.
  - name: Episodic Configuration
    description: Per-project episodic memory subsystem configuration.
  - name: Memories
    description: Core operations for episodic and semantic memory ingestion and retrieval.
  - name: Projects
    description: Lifecycle management for isolated memory namespaces.
  - name: Resources
    description: Embedder, language model, and reranker lifecycle management.
  - name: 'Semantic Memory: Categories'
    description: Category, template, and tag management for semantic sets.
  - name: 'Semantic Memory: Features'
    description: Add, retrieve, and update individual semantic features.
  - name: 'Semantic Memory: Sets'
    description: Set type and set ID lifecycle, listing, and configuration.
  - name: System
    description: Infrastructure, health, and observability.
paths:
  /api/v2/config/resources/language_models/{name}/retry:
    post:
      tags:
        - Resources
      summary: Retry Language Model Endpoint
      description: |-
        Retry building a failed language model.

            Attempts to reinitialize a language model that previously failed to build.
            This is useful when the underlying service (e.g., OpenAI API, AWS Bedrock)
            was temporarily unavailable during initial startup or configuration.

            The retry clears any previous error state and attempts a fresh build.
            If successful, the model becomes available for use immediately.

            The response indicates the result:
            - `success: true, status: ready`: Model is now available
            - `success: false, status: failed`: Still failing (check error field)

            Returns 404 if the language model is not configured.
      operationId: retry_language_model
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateResourceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateResourceResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: |2-

                Whether the operation succeeded.
        status:
          $ref: '#/components/schemas/ResourceStatus'
          description: |2-

                Current status of the resource after the operation.
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: |2-

                Error message if the operation failed.
      type: object
      required:
        - success
        - status
      title: UpdateResourceResponse
      description: Response model for resource update operations.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ResourceStatus:
      type: string
      enum:
        - ready
        - failed
        - pending
      title: ResourceStatus
      description: Status of a resource.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````