Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$has_disclaimer is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_lock is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_last is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_meta_box_present is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_send_notification is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_modify_title_and_content is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_notification_custom_heading is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_notification_custom_content is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_content_score is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_estimated-reading-time-minutes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_wordproof_timestamp is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$tipologia is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_tipologia is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$attributi is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_attributi is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$in_evidenza_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_in_evidenza_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$inviato_in_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_inviato_in_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$fonte is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_fonte is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$fonte_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_fonte_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_category is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_blz_affiliation_attributes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_content_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_attributes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_speciali is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_focuskw is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_linkdex is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$response_body is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$enclosure is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
Open Interpreter: creare ed eseguire codice in locale con l'intelligenza artificiale

Open Interpreter: creare ed eseguire codice in locale con l'intelligenza artificiale

I modelli generativi possono creare codice funzionante da eseguire in locale, senza appoggiarsi ad alcun servizio cloud. Open Interpreter è l'alternativa gratuita e open source ad OpenAI ChatGPT Code Interpreter.

Finora abbiamo utilizzato modelli generativi che, in risposta a una specifica richiesta dell’utente (prompt), offrono un output: un testo, un’immagine, una traccia audio e così via. Open Interpreter è un’implementazione open source, eseguita localmente, dell’interprete di codice di OpenAI. Abbiamo già visto cos’è ChatGPT Code Interpreter, una funzionalità riservata agli utenti paganti di OpenAI che consente all’intelligenza artificiale di eseguire codice sul cloud e di svolgere una vasta gamma di compiti, tra cui la generazione di grafici e mappe, la risoluzione di problemi matematici, l’editing di file e molto altro.

Open Interpreter, invece, consente di eseguire il codice di programmazione generato dall’intelligenza artificiale, direttamente su un normale PC, una workstation o un server. Questo tipo di approccio si annuncia davvero rivoluzionario perché l’utente può chiedere al modello generativo, usando istruzioni in linguaggio naturale, di automatizzare attività, creare contenuti e svolgere operazioni che di norma richiederebbero molti passaggi e l’utilizzo di tanti strumenti.

Differenze tra Open Interpreter e ChatGPT Code Interpreter

L’obiettivo di Open Interpreter, come spiegato anche sul sito ufficiale, è quello di consentire ai modelli LLM (Large Language Model) di eseguire codice direttamente sul sistema dell’utente.

Mentre Code Interpreter, attualmente basato sul modello generativo GPT-4, offre l’opportunità di svolgere i compiti richiesti poggiando sull’infrastruttura di OpenAI e senza la possibilità di attingere ai dati memorizzati su sistemi locali, Open Interpreter è in grado di eseguire il codice nell’ambiente dell’utente, con accesso completo a Internet e nessuna restrizione in tempi di tempo e dimensioni dei file.

Viceversa, Code Interpreter è ospitato sui server di OpenAI, è chiuso e fortemente limitato: non ha accesso a Internet, dispone di un set limitato di pacchetti preinstallati e non permette di caricare ed elaborare file di dimensioni superiori a 100 MB. Il codice eseguito a runtime non può impiegare oltre 120 secondi per concludere tutte le sue elaborazioni: diversamente si otterrà un messaggio di errore.

Eseguire codice in locale con Open Interpreter: quali possono essere i vantaggi

A coloro che fossero scettici nel lasciare eseguire codice sul sistema locale, diciamo subito che Open Interpreter risponde esattamente alle richieste (prompt) degli utenti. Inoltre, prima di eseguire il codice, l’utente deve approvarlo specificamente. Inoltre, esiste una modalità sicura, per adesso in fase sperimentale, che consente di mitigare qualunque rischio. Al momento lo fa solamente dalla finestra del terminale ma, nel prossimo futuro, sarà possibile usare un’applicazione dedicata.

L’utente può ad esempio ordinare l’esecuzione dei comandi usando il linguaggio naturale in modo da sfruttare le capacità computazionali della macchina in uso. Open Interpreter può quindi creare e modificare foto, video, PDF, controllare un browser, analizzare grandi insiemi di dati e così via. Può anche generare applicazioni vere e proprie utilizzando linguaggi come Python, JavaScript, PHP e così via.

In questo video dimostrativo, si vede come Open Interpreter possa modificare le impostazioni del sistema, creare in pochi secondi un’applicazione che funga da timer, riassumere il contenuto di un documento, interagire con le app installate (come posta elettronica e calendario) per raccogliere informazioni e condividerle con altri utenti, trasformare tutti i documenti contenuti in una cartella in PDF e così via. Non c’è veramente limite a ciò che si può fare.

Installazione e utilizzo

L’installazione di Open Interpreter avviene semplicemente tramite il comando seguente:

pip install open-interpreter

Ad installazione completata, è possibile interagire con Open Interpreter attraverso un’interfaccia simile a ChatGPT che fa perno sulla finestra del terminale: basta digitare interpreter e impartire la propria richiesta, meglio se con una descrizione il più chiara e dettagliata possibile.

Per eseguire entrambi i comandi, è necessario avere Python e il gestore dei pacchetti pip installati sul sistema.

Il comportamento di Open Interpreter può essere attualmente personalizzato intervenendo sul file di configurazione config.yaml. Utilizzando più configurazioni, è possibile fare in modo che Open Interpreter passi dall’una all’altra.

Oltre che dalla finestra del terminale, gli utenti possono sviluppare semplici app che acquisiscono in input il prompt da passare ad Open Interpreter. Ad esempio le seguenti semplici righe di codice Python, permettono di ottenere un grafico contenente le informazioni richieste e poi di avviare una chat interattiva:

import interpreter
interpreter.chat("Crea un grafico con l'andamento dei valori azionari di Apple e Meta") # Esegue il singolo comando indicato
interpreter.chat() # Avvia una chat interattiva

Tutte le informazioni sulla sintassi avanzata che Open Interpreter supporta, sono disponibili sul repository GitHub ufficiale.

Ti consigliamo anche

Link copiato negli appunti