This project contains a number of assets for automatic language translation using generative AI.
Currently there are two notebooks included:
-
CodeConversion.ipynb
--- Uses the OpenAI API to translate source code from/to a number of different programming languages (e.g. R, Python, SAS) -
CodeConversionMagic.ipynb
--- Creates a sasconvert Jupyter magic command for translating SAS code into Python code
- this project requires the
openai
Python package (already included inrequirements.txt
) - this project has been tested against 5.6 Domino Standard Environment Py3.9 R4.2.3 without any additional customizations
- this project requires a valid OpenAI API key loaded in an environment variable named
OPENAI_API_KEY
. If using in Domino, this can ideally be configured as a project environment variable