-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ui env vars * Add openrouter models * Add prod deployment * Ignore keyfiles
- Loading branch information
Showing
21 changed files
with
1,611 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: ML CI workflow | ||
on: | ||
push: | ||
paths: | ||
- "services/ml/**" | ||
- ".github/workflows/ml.yaml" | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./services/ml | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
# - name: Run tests | ||
# run: python -m unittest discover tests | ||
|
||
build-container: | ||
if: github.ref == 'refs/heads/main' | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./services/ml | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
- name: Login to Yandex Cloud Container Registry | ||
id: login-cr | ||
uses: yc-actions/yc-cr-login@v2 | ||
with: | ||
yc-sa-json-credentials: ${{ secrets.YANDEX_SA_KEY }} | ||
- run: | | ||
echo "Packaging docker image ..." | ||
tag="${DOCKER_REGISTRY}/ml:${{ github.sha }}" | ||
docker build -t $tag -t ${DOCKER_REGISTRY}/ml:latest . | ||
docker push ${DOCKER_REGISTRY}/ml --all-tags | ||
env: | ||
DOCKER_REGISTRY: cr.yandex/crpc50gkvq2bp251sfgb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ import type { Metadata } from "next"; | |
import { Roboto_Mono } from "next/font/google"; | ||
import { Inter } from "next/font/google"; | ||
import "./globals.css"; | ||
import { ConfigProvider } from "@/domain/config/ConfigProvider"; | ||
|
||
const robotoMono = Roboto_Mono({ subsets: ["latin", "cyrillic"], weight: ['400', '700'], display: 'swap' }); | ||
const inter = Inter({ subsets: ["latin", "cyrillic"] }); | ||
|
@@ -14,7 +15,7 @@ export const metadata: Metadata = { | |
}, | ||
}; | ||
|
||
export default function RootLayout({ | ||
export default async function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
|
@@ -24,9 +25,12 @@ export default function RootLayout({ | |
<head> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" /> | ||
<link rel="icon" href="/favicon.ico" sizes="any" /> | ||
|
||
</head> | ||
<body className={inter.className}>{children}</body> | ||
<body className={inter.className}> | ||
<ConfigProvider configData={{ ENDPOINT: process.env.API_URL ?? 'http://localhost:5000' }}> | ||
{children} | ||
</ConfigProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.