Giter VIP home page Giter VIP logo

gpt-action-r-api's People

Contributors

philiporlando avatar

Watchers

 avatar

Forkers

francyjglisboa

gpt-action-r-api's Issues

Translate input expressions into formatted R

  • Need to handle line breaks
  • Multiple statements on the same line
  • Comments
  • maybe use tidy_source() or formatR()
  • write input string to file, then call formatter, then rpy2 source calls?

Finish building docker image

  • pin R version
  • add common R packages to renv.lock
  • improve error messages when missing packages are detected. currently reads "invalid R code"...

Finish configuring webserver

Need to add a reverse proxy to the app on the droplet using apache2 or nginx.

Accidentally brought down philiporlando.com after fiddling with Google Domain settings.

Need to wait for DNS propogation to complete ~48 hours?

Currently unable to run the below command from the droplet:

sudo apache2ctl configtest
AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/philiporlando.com.conf:
Invalid command 'ProxyPass', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

Add linter gha

  • Add github action for automatic linting.
  • Use black formatter
  • Run pytest from poetry
  • Host docker image so it can be used by gha?

Parse R code strings prior to evaluation

The current version of the API can handle simple one-liners like 2 + 2 or class(data.frame(a = 1, b = 2, c = 3)), but will raise a 422 error if multiline code strings are provided.

It's not clear if there's a straightforward way to parse the input code without relying on chatGPT itself, which is expensive and kind of defeats the whole purpose...

This was a fun toy project to practice FastAPI, Docker, and GitHub Actions, but I don't think it will every be fit for use as a chatGPT action...

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.