<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Yeboyebo\RecomendadorTallas\Api\ChatGPT" type="Yeboyebo\RecomendadorTallas\Model\ChatGPT"/>

    <virtualType name="Yeboyebo\RecomendadorTallas\Model\ResourceModel\Medidas\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
        <arguments>
            <argument name="mainTable" xsi:type="string">recomendador_tallas_medidas</argument>
            <argument name="resourceModel" xsi:type="string">Yeboyebo\RecomendadorTallas\Model\ResourceModel\Medidas</argument>
            <argument name="idFieldName" xsi:type="string">id</argument>
        </arguments>
    </virtualType>

    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <arguments>
            <argument name="collections" xsi:type="array">
                <item name="recomendador_medidas_listing_data_source" xsi:type="string">Yeboyebo\RecomendadorTallas\Model\ResourceModel\Medidas\Grid\Collection</item>
            </argument>
        </arguments>
    </type>
</config>