We are announcing the initial release of the `pg_llm_helper` extension for 
PostgreSQL.

This extension integrates OpenAI's `gpt-4o-mini` model directly into PostgreSQL 
for help with troubleshooting errors.

Example usage:

    postgres=# SELLECT 1;
    ERROR:  syntax error at or near "SELLECT"
    LINE 1: SELLECT 1;
            ^
    postgres=# SELECT llm_help_last_error();
                                                                
llm_help_last_error
    
-------------------------------------------------------------------------------------------------------------------------------------------
     The error indicates that there is a syntax error in your SQL query. The 
keyword "SELLECT" is misspelled; the correct keyword is "SELECT".+
                                                                                
                                                          +
     **Fix:**                                                                   
                                                              +
      Correct the spelling in your query:                                       
                                                               +
                                                                                
                                                          +
                                                                                
                                             +
     SELECT 1;                                                                  
                                                              +

    (1 row)

This pre-release version has been tested with PostgreSQL 17 so far.

If you have any issues, please report them on GitHub:

* 
[https://github.com/GeoffMontee/pg_llm_helper/issues](https://github.com/GeoffMontee/pg_llm_helper/issues)
* 
[https://github.com/GeoffMontee/pg_llm_helper/releases/tag/v0.1.0](https://github.com/GeoffMontee/pg_llm_helper/releases/tag/v0.1.0)

Thank you!

Reply via email to