Giter Club home page Giter Club logo

alfred-gpt's Introduction

alfred-gpt

Alfred GPT lookup

Requirements:

python3 > 3.6

requests module (python3 -m pip install requests)

How to use:

  1. Clone this repository and double click the "GPT-3 Lookup.alfredworkflow" file to add it to Alfred.

  2. You must add an API KEY to config.json:

https://github.com/rfaile313/alfred-gpt/blob/53245728e4087252cab76c555ec4a18153ef1210/config.json#L1-L6

You can also change the model, temperature, or tokens here. Refer to the OpenAI docs for more information.

  1. Unfortunately because this is run through alfred, the tool requires absolute paths which are not the same at runtime (meaning trying to find them with tools like python's os module will not work).

So you must add these yourself. There are 2 manual paths to change. One in the code:

https://github.com/rfaile313/alfred-gpt/blob/54681e344ce3cd3d19c0047ede1c23e6bed71742/main.py#L12

example: SOURCE_DIR="/Users/rfaile313/alfred-gpt"

And one in the Alfred workflow itself:

Screenshot 2023-03-14 at 12 55 46 PM

Screenshot 2023-03-14 at 12 56 23 PM

example: /opt/homebrew/bin/python3 /Users/rfaile313/alfred-gpt/main.py "$1"

Note: your python3 path may be different than /opt/homebrew/bin/python3 -- you can check in your terminal with $which python3

alfred-gpt's People

Contributors

rfaile313 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.