Code Monkey home page Code Monkey logo

sheets-llm's Introduction

Use GPT models in Google Sheets

A simple script to use OpenAI's GPT models in Google Sheets. This allows you to do things like summarisation, translation, entity extraction, classification, etc.

Installation

  1. Open the Google Sheet where you want to use ChatGPT.
  2. Go to Extensions > Apps Script.
  3. Copy the contents of Code.gs and paste it into the script editor.
  4. Copy the contents of settings.html and paste it into a new HTML file with the same name.
  5. Save both and reload the Google Sheet.
  6. You should now see a new menu item called LLM. Click on it and then Settings.
  7. Enter your OpenAI API key and save.

Usage

You now have access to a new =LLM() function in Google Sheets. You can use it like this:

=LLM(<input_text>, "Summarise the text", "gpt-3.5-turbo", 0)

By default, the function uses the gpt-3.5-turbo model with a temperature of 0, but you can change it to gpt-4 for more advanced tasks or increase the temperature for more creative responses.

To-do

  • Add support for non-OpenAI models

sheets-llm's People

Contributors

nicucalcea avatar

Stargazers

Igor Cotruta avatar Sin-Woo Bang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.