Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove OpenAI API key #16

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build_and_deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build Docker Image, Push to GHCR and Deploy to GKE

on:
workflow_dispatch: # allows for manual triggering
push:
branches:
- main
- feat/deployment

jobs:
build:
Expand Down Expand Up @@ -54,7 +54,6 @@ jobs:
- name: "Deploy Helm Chart"
run: |
helm upgrade --install project-llllm deployment/helm --create-namespace --namespace project-llllm \
--set secrets.openai_api_key=${{ secrets.OPENAI_API_KEY }} \
--set streamlit.image.tag=${{ github.sha }}
- name: Create contacts configmap
run: kubectl apply -f deployment/k8s/configmap.yaml --namespace project-llllm
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ A suite of tools to perform geospatial operations using Large Language Models.
LLLLM stands for Lat-Lng-Large-Language-Model, you can call it as "el el el el emm" or "L4M".

## Setup
1. Create the llllm-env - `mamba env create -f environment.yaml`
2. Set your OpenAI API key as an environment variable - `export OPENAI_API_KEY=<your key here>`

Create the llllm-env - `mamba env create -f environment.yaml`

## Getting Started

Expand Down
7 changes: 0 additions & 7 deletions deployment/helm/templates/secrets.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions deployment/helm/templates/streamlit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ spec:
image: {{ .Values.streamlit.image.repository }}:{{ .Values.streamlit.image.tag }}
command: ["/opt/conda/envs/llllm-env/bin/streamlit"]
args: ["run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
env:
- name: OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: llllm-secrets
key: openai_api_key
ports:
- containerPort: 8501
volumeMounts:
Expand Down
3 changes: 0 additions & 3 deletions deployment/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ streamlit:
repository: ghcr.io/developmentseed/llllm
tag: latest
host: llllm.k8s.labs.ds.io

secrets:
openai_api_key: