Skip to content

nooraldeenkai/llm-coder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-coder

llm-coder is a web application that leverages a Large Language Model (LLM) such as OpenAI's GPT-3.5 Turbo to generate code snippets based on user inputs.

Getting Started

Requirements

  • Docker
  • OpenAI API Key

Usage

  1. Clone the repository:

    git clone https://github.com/nooraldeenkai/llm-coder.git
  2. Navigate to the project directory:

    cd llm-coder
  3. Create a .env file in the root directory and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here
    
  4. Build the Docker image:

    docker build -t llm-coder .
  5. Run the Docker container:

    docker run -d -p 8003:8003 llm-coder
  6. Access the application at http://localhost:8003/static/index.html in your web browser.

  7. Alternatively, you can access the Swagger documentation at http://localhost:8003/docs for API endpoints.

API Endpoints

  • /get_answer: POST endpoint to send a prompt to the language model and get a code snippet response.
  • /feedback: POST endpoint to submit feedback on the generated code snippets.

Customization

  • You can customize the application by modifying the FastAPI endpoints and the logic in the main.py file to suit your specific use case.
  • Adjust the Dockerfile and Docker container settings as needed for your deployment environment.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for any bug fixes, feature requests, or improvements.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published