ROOTREZ
    ROOTREZ
    • App
      • Api health check
        GET
      • Check if the API is alive
        GET
      • Check current outbound public IP
        GET
    • Property
      • Get property details
        GET
      • Get property availability
        POST
      • List property reviews
        GET
    • Properties
      • Get static data for an Account
        GET
      • Get availability for an account
        POST
    • ParityCheck
      • Perform parity check with availability data for a accountId
        POST
      • Check rate parity for a provider
        POST
    • Account
      • PublisherController_getSettings
        GET
      • Get map pins for a Account
        GET
      • Get filters for a Account
        GET
      • Get themes for a Account
        GET
      • Get banners by account
        GET
      • Get landing page by account and slug
        GET
    • Public Account
      • PublicPublisherController_getFilters
        GET
      • PublicPublisherController_getWidget
        GET
    • Auth
      • Authenticate token and secret to get JWT
        POST
      • AuthController_checkJWT
        GET
      • AuthController_refresh
        POST
    • Discount
      • Get grouped discounts
        GET
      • Get all discounts
        GET
      • DiscountController_getViewDiscount
        POST
    • Addons
      • Get products for the authenticated account
      • Get product detail from cache
      • AddOnsController_createOrder
    • Cache
      • CacheController_cleanByPublisher
      • CacheController_refreshByPublisher
      • CacheController_cleanByProperty
      • CacheController_refreshByProperty
    • Book
      • Create new reservation
      • Preview reservation
    • Create a conversation collection
      POST
    • Create a conversation model
      POST
    • search conversation
      POST
    • get a conversation model
      GET
    • semantica search
      POST
    • create product
      POST

      Create a conversation model

      Developing
      POST
      http://localhost:8108/conversations/models
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://localhost:8108/conversations/models' \
      --header 'x-typesense-api-key: nkbN8NxhR9rl5GJtl2ytWj3RqC4HVX2b' \
      --header 'Content-Type: text/plain' \
      --data-raw '{
              "id": "conv-model-3",
              "model_name": "openai/gpt-3.5-turbo",
              "history_collection": "conversation_store",
              "api_key": "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",
              "system_prompt": "You are an assistant for question-answering offering the properties in the results. You can only make conversations based on the provided context. If a response cannot be formed strictly using the provided context, politely say you do not have knowledge about that topic.
              at the end Alway ask for more information or specification to help in a better way",        
              "max_bytes": 16384
            }'
      Response Response Example
      {}

      Request

      Header Params

      Body Params text/plain
      Examples

      Responses

      🟢200Success
      application/json
      Body

      Modified at 2025-03-13 03:10:15
      Previous
      Create a conversation collection
      Next
      search conversation
      Built with