Skip to content

Commit

Permalink
chore: fix env variables and change app title
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaslhjulstad committed Nov 20, 2024
1 parent 7b5fe10 commit e3c7a57
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/src/services/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
deployment_name = os.getenv("AZURE_OPENAI_DEPLOYMENT_NAME")

# TODO: add correct elements to the AzureOpenAI class
API_KEY = os.getenv("OPENAI_API_KEY")
API_KEY = os.getenv("AZURE_OPENAI_API_KEY")

llm = ChatOpenAI(temperature=0, api_key=API_KEY)

Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
environment:
- ARKIVGPT_URL=http://host.docker.internal:80/api # Overrides the URLs set in .env to use host.docker.internal instead of localhost
- PLANPRAT_URL=http://host.docker.internal:8000/plan-prat/
- CADAID_URL=${CADAID_URL}
- DATABASE_URL=${DATABASE_URL}
- NEXTAUTH_URL=${NEXTAUTH_URL}
extra_hosts:
Expand All @@ -26,3 +27,11 @@ services:
- "8000:8000"
volumes:
- ./backend:/code
environment:
- AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY}
- AZURE_OPENAI_API_BASE=${AZURE_OPENAI_API_BASE}
- AZURE_OPENAI_DEPLOYMENT_NAME=${AZURE_OPENAI_DEPLOYMENT_NAME}
- API_VERSION=${API_VERSION}
- ARKIVGPT_URL=${ARKIVGPT_URL}
- CADAID_URL=${CADAID_URL}

11 changes: 7 additions & 4 deletions webapp/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@ DATABASE_URL="mysql://root:password@localhost:3306/ntnu-kpro-ai-assistant"
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"

# Planprat API
PLANPRAT_URL="http://localhost:8000/plan-prat"

# Next Auth Discord Provider
DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""

# ArkivGPT API
ARKIVGPT_URL="http://localhost:80/api"

# CADAID API
CADAID_URL="http://localhost:5001/detect/"

# Planprat API
PLANPRAT_URL="http://localhost:8000/plan-prat"
4 changes: 2 additions & 2 deletions webapp/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import Navbar from "../components/Navbar";
import Footer from "../components/Footer";

export const metadata: Metadata = {
title: "Create T3 App",
description: "Generated by create-t3-app",
title: "KartAI AI-modeller",
description: "Dette er en tjeneste som viser hvordan de ulike KI-assistentene til Norkart kan brukes til å effektivisere og hjelpe innbyggere og saksbehandlere med byggesøknader.",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};

Expand Down

0 comments on commit e3c7a57

Please sign in to comment.