Merge branch 'coleam00:main' into main
Browse files- .github/workflows/github-build-push.yml +0 -39
- README.md +3 -2
- app/utils/constants.ts +5 -3
.github/workflows/github-build-push.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
name: Build and Push Container
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
branches:
|
6 |
-
- main
|
7 |
-
# paths:
|
8 |
-
# - 'Dockerfile'
|
9 |
-
workflow_dispatch:
|
10 |
-
jobs:
|
11 |
-
build-and-push:
|
12 |
-
runs-on: [ubuntu-latest]
|
13 |
-
steps:
|
14 |
-
- name: Checkout code
|
15 |
-
uses: actions/checkout@v4
|
16 |
-
|
17 |
-
- name: Set up QEMU
|
18 |
-
uses: docker/setup-qemu-action@v1
|
19 |
-
|
20 |
-
- name: Set up Docker Buildx
|
21 |
-
uses: docker/setup-buildx-action@v1
|
22 |
-
|
23 |
-
- name: Login to GitHub Container Registry
|
24 |
-
uses: docker/login-action@v1
|
25 |
-
with:
|
26 |
-
registry: ghcr.io
|
27 |
-
username: ${{ github.actor }}
|
28 |
-
password: ${{ secrets.GITHUB_TOKEN }}
|
29 |
-
|
30 |
-
- name: Build and Push Containers
|
31 |
-
uses: docker/build-push-action@v2
|
32 |
-
with:
|
33 |
-
context: .
|
34 |
-
file: Dockerfile
|
35 |
-
platforms: linux/amd64,linux/arm64
|
36 |
-
push: true
|
37 |
-
tags: |
|
38 |
-
ghcr.io/${{ github.repository }}:latest
|
39 |
-
ghcr.io/${{ github.repository }}:${{ github.sha }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -18,7 +18,9 @@ This fork of Bolt.new allows you to choose the LLM that you use for each prompt!
|
|
18 |
- β
Ability to sync files (one way sync) to local folder (@muzafferkadir)
|
19 |
- β
Containerize the application with Docker for easy installation (@aaronbolton)
|
20 |
- β
Publish projects directly to GitHub (@goncaloalves)
|
21 |
-
-
|
|
|
|
|
22 |
- β¬ **HIGH PRIORITY** - Better prompting for smaller LLMs (code window sometimes doesn't start)
|
23 |
- β¬ **HIGH PRIORITY** Load local projects into the app
|
24 |
- β¬ **HIGH PRIORITY** - Attach images to prompts
|
@@ -34,7 +36,6 @@ This fork of Bolt.new allows you to choose the LLM that you use for each prompt!
|
|
34 |
- β¬ Ability to revert code to earlier version
|
35 |
- β¬ Prompt caching
|
36 |
- β¬ Better prompt enhancing
|
37 |
-
- β¬ Ability to enter API keys in the UI
|
38 |
- β¬ Have LLM plan the project in a MD file for better results/transparency
|
39 |
- β¬ VSCode Integration with git-like confirmations
|
40 |
- β¬ Upload documents for knowledge - UI design templates, a code base to reference coding style, etc.
|
|
|
18 |
- β
Ability to sync files (one way sync) to local folder (@muzafferkadir)
|
19 |
- β
Containerize the application with Docker for easy installation (@aaronbolton)
|
20 |
- β
Publish projects directly to GitHub (@goncaloalves)
|
21 |
+
- β
Ability to enter API keys in the UI (@ali00209)
|
22 |
+
- β
xAI Grok Beta Integration (@milutinke)
|
23 |
+
- β¬ **HIGH PRIORITY** - Prevent Bolt from rewriting files as often (file locking and diffs)
|
24 |
- β¬ **HIGH PRIORITY** - Better prompting for smaller LLMs (code window sometimes doesn't start)
|
25 |
- β¬ **HIGH PRIORITY** Load local projects into the app
|
26 |
- β¬ **HIGH PRIORITY** - Attach images to prompts
|
|
|
36 |
- β¬ Ability to revert code to earlier version
|
37 |
- β¬ Prompt caching
|
38 |
- β¬ Better prompt enhancing
|
|
|
39 |
- β¬ Have LLM plan the project in a MD file for better results/transparency
|
40 |
- β¬ VSCode Integration with git-like confirmations
|
41 |
- β¬ Upload documents for knowledge - UI design templates, a code base to reference coding style, etc.
|
app/utils/constants.ts
CHANGED
@@ -5,11 +5,10 @@ export const WORK_DIR = `/home/${WORK_DIR_NAME}`;
|
|
5 |
export const MODIFICATIONS_TAG_NAME = 'bolt_file_modifications';
|
6 |
export const MODEL_REGEX = /^\[Model: (.*?)\]\n\n/;
|
7 |
export const PROVIDER_REGEX = /\[Provider: (.*?)\]\n\n/;
|
8 |
-
export const DEFAULT_MODEL = 'claude-3-5-sonnet-
|
9 |
export const DEFAULT_PROVIDER = 'Anthropic';
|
10 |
|
11 |
const staticModels: ModelInfo[] = [
|
12 |
-
{ name: 'claude-3-5-sonnet-20240620', label: 'Claude 3.5 Sonnet', provider: 'Anthropic' },
|
13 |
{ name: 'gpt-4o', label: 'GPT-4o', provider: 'OpenAI' },
|
14 |
{ name: 'anthropic/claude-3.5-sonnet', label: 'Anthropic: Claude 3.5 Sonnet (OpenRouter)', provider: 'OpenRouter' },
|
15 |
{ name: 'anthropic/claude-3-haiku', label: 'Anthropic: Claude 3 Haiku (OpenRouter)', provider: 'OpenRouter' },
|
@@ -27,7 +26,10 @@ const staticModels: ModelInfo[] = [
|
|
27 |
{ name: 'llama-3.2-11b-vision-preview', label: 'Llama 3.2 11b (Groq)', provider: 'Groq' },
|
28 |
{ name: 'llama-3.2-3b-preview', label: 'Llama 3.2 3b (Groq)', provider: 'Groq' },
|
29 |
{ name: 'llama-3.2-1b-preview', label: 'Llama 3.2 1b (Groq)', provider: 'Groq' },
|
30 |
-
{ name: 'claude-3-
|
|
|
|
|
|
|
31 |
{ name: 'claude-3-sonnet-20240229', label: 'Claude 3 Sonnet', provider: 'Anthropic' },
|
32 |
{ name: 'claude-3-haiku-20240307', label: 'Claude 3 Haiku', provider: 'Anthropic' },
|
33 |
{ name: 'gpt-4o-mini', label: 'GPT-4o Mini', provider: 'OpenAI' },
|
|
|
5 |
export const MODIFICATIONS_TAG_NAME = 'bolt_file_modifications';
|
6 |
export const MODEL_REGEX = /^\[Model: (.*?)\]\n\n/;
|
7 |
export const PROVIDER_REGEX = /\[Provider: (.*?)\]\n\n/;
|
8 |
+
export const DEFAULT_MODEL = 'claude-3-5-sonnet-latest';
|
9 |
export const DEFAULT_PROVIDER = 'Anthropic';
|
10 |
|
11 |
const staticModels: ModelInfo[] = [
|
|
|
12 |
{ name: 'gpt-4o', label: 'GPT-4o', provider: 'OpenAI' },
|
13 |
{ name: 'anthropic/claude-3.5-sonnet', label: 'Anthropic: Claude 3.5 Sonnet (OpenRouter)', provider: 'OpenRouter' },
|
14 |
{ name: 'anthropic/claude-3-haiku', label: 'Anthropic: Claude 3 Haiku (OpenRouter)', provider: 'OpenRouter' },
|
|
|
26 |
{ name: 'llama-3.2-11b-vision-preview', label: 'Llama 3.2 11b (Groq)', provider: 'Groq' },
|
27 |
{ name: 'llama-3.2-3b-preview', label: 'Llama 3.2 3b (Groq)', provider: 'Groq' },
|
28 |
{ name: 'llama-3.2-1b-preview', label: 'Llama 3.2 1b (Groq)', provider: 'Groq' },
|
29 |
+
{ name: 'claude-3-5-sonnet-latest', label: 'Claude 3.5 Sonnet (new)', provider: 'Anthropic' },
|
30 |
+
{ name: 'claude-3-5-sonnet-20240620', label: 'Claude 3.5 Sonnet (old)', provider: 'Anthropic' },
|
31 |
+
{ name: 'claude-3-5-haiku-latest', label: 'Claude 3.5 Haiku (new)', provider: 'Anthropic' },
|
32 |
+
{ name: 'claude-3-opus-latest', label: 'Claude 3 Opus', provider: 'Anthropic' },
|
33 |
{ name: 'claude-3-sonnet-20240229', label: 'Claude 3 Sonnet', provider: 'Anthropic' },
|
34 |
{ name: 'claude-3-haiku-20240307', label: 'Claude 3 Haiku', provider: 'Anthropic' },
|
35 |
{ name: 'gpt-4o-mini', label: 'GPT-4o Mini', provider: 'OpenAI' },
|