Skip to content

JGalego/LLM-Goblet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LLM Goblet ๐Ÿท

Overview

LLM proxy application powered by AWS Chalice and LiteLLM.

Prerequisites

Getting Started

  1. Install dependencies

    pip install -r requirements.txt
  2. Build and deploy the application

    chalice deploy --stage dev
  3. Test it out!

    curl -s -X POST `chalice url --stage dev`/images/generations \
        --user "$AWS_ACCESS_KEY_ID":"$AWS_SECRET_ACCESS_KEY" \
        --aws-sigv4 "aws:amz:$AWS_DEFAULT_REGION:execute-api" \
        -H "x-amz-security-token: $AWS_SESSION_TOKEN" \
        -H "Accept: application/json" \
        -H "Content-Type: application/json" \
        -d @assets/goblet.json | jq -r .data[0].b64_json | base64 -d > assets/goblet.jpg

But wait, there's more!

This project includes a justfile that simplifies the process of building, deploying and testing the application.

# Run ๐Ÿ› ๏ธ
just local
just deploy

# Check โœ…
just check

# Test ๐Ÿš€
just talk "What is the meaning of life?"
just embed "So long and thanks for all the fish"
just image "An astronaut riding a horse on Mars"

# Clean ๐Ÿงน
just destroy

Want to learn more about just? Check out the Just Programmer's Manual ๐Ÿ“–

About

LLM proxy application powered by AWS Chalice and LiteLLM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published