          </div>

                        <!-- Custom Endpoint (hidden by default) -->
                        <div class="form-group half" id="endpoint_container" style="display: none;">
                            <label for="custom_endpoint">Custom Endpoint</label>
                            <input type="text" id="custom_endpoint" name="custom_endpoint" class="ldr-form-control" placeholder="https://your-endpoint-url/v1" value="{{ settings.llm_openai_endpoint_url }}">
                            <span cl