You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what's wrong
I've installed ollama, the LLM, and finally Privy.
deepseek-coder:latest 3ddd2d3fc8d2 776 MB 3 hours ago
Configured Privy to automatic. Then tried manual (had to change shortcut)
But I cannot autocomplete nor make it generate code.
This is where I'm trying
<?php
use CodeIgniter\CodeIgniter;
function url_assets() {
return base_url() . env("TEMPLATE_PATH") . "/assets/";
}
function convert_datetime_esp ($date) {
}
When I exec the show logs I get:
024-11-01T15:53:50.262Z [INFO] The provided PHP code is incomplete and contains a lot of typos, but I'll try to provide you with the complete version based on your requirements. This script uses CodeIgniter framework for URLs generation which might be useful if this file will serve as an extension or helper function in other parts of application that use CI (Code Igniter).
<?php
// Language: PHP, File URI :file:///var/www/html/servicios/app/Helpers/url_helper.php
use CodeIgniter\I18n\Timezone; // Import the TimeZone library for handling timezones in your application
use Config\Services as ServicesConfig ; //Importing services configuration file to get database, session etc configurations from CI config folder . This is a common practice.
use CodeIgniter\HTTP\RequestInterface;// Include HTTP Request Interface so we can access the request data (like $_POST or _GET) in your function and methods using this library
function url_assets() { // Function to generate URL for assets folder, it will return base URI + TEMPLATE PATH / Assets. For example: http://localhost/servicios/app/assets/. This is a common practice when you have different environments (like development and production) in your application
return base_url() . env("TEMPLATE_PATH") ."/assets"; // Return the complete URL with environment specifics. For example: http://localhost/servicios/app/. This is a common practice when you have different environments (like development and production) in your application
} // End of url_asset() function // Start Of convert_date_esp_eng(); Function.
function convert_date_esp_eng($inputDate, $format = 'Y-m-d H:i') { // This is a simple date conversion from Spanish to English format (YYYY - MM - DD – hh : mm)
$CI = new CodeIgniter(); // Create an instance of the CI super object. It's used for accessing services and configurations in your application . // End Of convert_date_esp_eng() Function Start New Section }
?>```php end code, please replace 'Y-m-d H:i', $inputDate with the actual date format and value you want to use. Also make sure that your environment variables (TEMPLATE_PATH) are set correctly in CI configuration file or else it will throw an error when trying to access them using env() function from CodeIgniter library
So I guess it is working, but I cannot see while typing nor see it when I press the shortcut
What could I try?
Thanks
The text was updated successfully, but these errors were encountered:
Tell us what you need help with.
I don't know what's wrong
I've installed ollama, the LLM, and finally Privy.
deepseek-coder:latest 3ddd2d3fc8d2 776 MB 3 hours ago
Configured Privy to automatic. Then tried manual (had to change shortcut)
But I cannot autocomplete nor make it generate code.
This is where I'm trying
When I exec the show logs I get:
So I guess it is working, but I cannot see while typing nor see it when I press the shortcut
What could I try?
Thanks
The text was updated successfully, but these errors were encountered: