Skip to content

Commit 3e2fc32

Browse files
authored
Merge branch 'main' into fix/described_by
2 parents 2064c83 + 1d716c0 commit 3e2fc32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2284
-1711
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ LMSTUDIO_API_BASE_URL=
7070
# You only need this environment variable set if you want to use xAI models
7171
XAI_API_KEY=
7272

73+
# Get your Perplexity API Key here -
74+
# https://www.perplexity.ai/settings/api
75+
# You only need this environment variable set if you want to use Perplexity models
76+
PERPLEXITY_API_KEY=
77+
7378
# Include this environment variable if you want more logging for debugging locally
7479
VITE_LOG_LEVEL=debug
7580

.github/workflows/commit.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ jobs:
1717
- name: Checkout the code
1818
uses: actions/checkout@v3
1919

20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
2024
- name: Get the latest commit hash
21-
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
22-
25+
run: |
26+
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
27+
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
28+
2329
- name: Update commit file
2430
run: |
25-
echo "{ \"commit\": \"$COMMIT_HASH\" }" > app/commit.json
31+
echo "{ \"commit\": \"$COMMIT_HASH\", \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
2632
2733
- name: Commit and push the update
2834
run: |

.github/workflows/semantic-pr.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Semantic Pull Request
2+
on:
3+
pull_request_target:
4+
types: [opened, reopened, edited, synchronize]
5+
permissions:
6+
pull-requests: read
7+
jobs:
8+
main:
9+
name: Validate PR Title
10+
runs-on: ubuntu-latest
11+
steps:
12+
# https://github.com/amannn/action-semantic-pull-request/releases/tag/v5.5.3
13+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
subjectPattern: ^(?![A-Z]).+$
18+
subjectPatternError: |
19+
The subject "{subject}" found in the pull request title "{title}"
20+
didn't match the configured pattern. Please ensure that the subject
21+
doesn't start with an uppercase character.
22+
types: |
23+
fix
24+
feat
25+
chore
26+
build
27+
ci
28+
perf
29+
docs
30+
refactor
31+
revert
32+
test

.github/workflows/update-stable.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
update-commit:
13-
if: contains(github.event.head_commit.message, '#release')
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- name: Checkout the code
18-
uses: actions/checkout@v3
19-
20-
- name: Get the latest commit hash
21-
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
22-
23-
- name: Update commit file
24-
run: |
25-
echo "{ \"commit\": \"$COMMIT_HASH\" }" > app/commit.json
26-
27-
- name: Commit and push the update
28-
run: |
29-
git config --global user.name "github-actions[bot]"
30-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
31-
git add app/commit.json
32-
git commit -m "chore: update commit hash to $COMMIT_HASH"
33-
git push
3412
prepare-release:
35-
needs: update-commit
3613
if: contains(github.event.head_commit.message, '#release')
3714
runs-on: ubuntu-latest
3815

@@ -181,10 +158,16 @@ jobs:
181158
echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
182159
echo "EOF" >> $GITHUB_OUTPUT
183160
161+
- name: Get the latest commit hash and version tag
162+
run: |
163+
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
164+
echo "NEW_VERSION=${{ steps.bump_version.outputs.new_version }}" >> $GITHUB_ENV
165+
184166
- name: Commit and Tag Release
185167
run: |
186168
git pull
187-
git add package.json pnpm-lock.yaml changelog.md
169+
echo "{ \"commit\": \"$COMMIT_HASH\", \"version\": \"$NEW_VERSION\" }" > app/commit.json
170+
git add package.json pnpm-lock.yaml changelog.md app/commit.json
188171
git commit -m "chore: release version ${{ steps.bump_version.outputs.new_version }}"
189172
git tag "v${{ steps.bump_version.outputs.new_version }}"
190173
git push

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to oTToDev
1+
# Contributing to bolt.diy
22

3-
First off, thank you for considering contributing to Bolt.diy! This fork aims to expand the capabilities of the original project by integrating multiple LLM providers and enhancing functionality. Every contribution helps make Bolt.diy a better tool for developers worldwide.
3+
First off, thank you for considering contributing to bolt.diy! This fork aims to expand the capabilities of the original project by integrating multiple LLM providers and enhancing functionality. Every contribution helps make bolt.diy a better tool for developers worldwide.
44

55
## 📋 Table of Contents
66
- [Code of Conduct](#code-of-conduct)

FAQ.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,63 @@
1-
[![Bolt.new: AI-Powered Full-Stack Web Development in the Browser](./public/social_preview_index.jpg)](https://bolt.new)
1+
[![bolt.diy: AI-Powered Full-Stack Web Development in the Browser](./public/social_preview_index.jpg)](https://bolt.diy)
22

3-
# Bolt.new Fork by Cole Medin - Bolt.diy
3+
# bolt.diy
4+
5+
## Recommended Models for bolt.diy
6+
7+
For the best experience with bolt.diy, we recommend using the following models:
8+
9+
- **Claude 3.5 Sonnet (old)**: Best overall coder, providing excellent results across all use cases
10+
- **Gemini 2.0 Flash**: Exceptional speed while maintaining good performance
11+
- **GPT-4o**: Strong alternative to Claude 3.5 Sonnet with comparable capabilities
12+
- **DeepSeekCoder V2 236b**: Best open source model (available through OpenRouter, DeepSeek API, or self-hosted)
13+
- **Qwen 2.5 Coder 32b**: Best model for self-hosting with reasonable hardware requirements
14+
15+
**Note**: Models with less than 7b parameters typically lack the capability to properly interact with bolt!
416

517
## FAQ
618

7-
### How do I get the best results with Bolt.diy?
19+
### How do I get the best results with bolt.diy?
820

9-
- **Be specific about your stack**: If you want to use specific frameworks or libraries (like Astro, Tailwind, ShadCN, or any other popular JavaScript framework), mention them in your initial prompt to ensure Bolt scaffolds the project accordingly.
21+
- **Be specific about your stack**: If you want to use specific frameworks or libraries (like Astro, Tailwind, ShadCN, or any other popular JavaScript framework), mention them in your initial prompt to ensure bolt scaffolds the project accordingly.
1022

1123
- **Use the enhance prompt icon**: Before sending your prompt, try clicking the 'enhance' icon to have the AI model help you refine your prompt, then edit the results before submitting.
1224

1325
- **Scaffold the basics first, then add features**: Make sure the basic structure of your application is in place before diving into more advanced functionality. This helps Bolt.diy understand the foundation of your project and ensure everything is wired up right before building out more advanced functionality.
1426

1527
- **Batch simple instructions**: Save time by combining simple instructions into one message. For example, you can ask Bolt.diy to change the color scheme, add mobile responsiveness, and restart the dev server, all in one go saving you time and reducing API credit consumption significantly.
1628

17-
### Do you plan on merging Bolt.diy back into the official Bolt.new repo?
18-
19-
More news coming on this coming early next month - stay tuned!
20-
2129
### Why are there so many open issues/pull requests?
2230

23-
Bolt.diy was started simply to showcase how to edit an open source project and to do something cool with local LLMs on my (@ColeMedin) YouTube channel! However, it quickly
24-
grew into a massive community project that I am working hard to keep up with the demand of by forming a team of maintainers and getting as many people involved as I can.
25-
That effort is going well and all of our maintainers are ABSOLUTE rockstars, but it still takes time to organize everything so we can efficiently get through all
26-
the issues and PRs. But rest assured, we are working hard and even working on some partnerships behind the scenes to really help this project take off!
31+
bolt.diy was started simply to showcase how to edit an open source project and to do something cool with local LLMs on my (@ColeMedin) YouTube channel! However, it quickly grew into a massive community project that I am working hard to keep up with the demand of by forming a team of maintainers and getting as many people involved as I can. That effort is going well and all of our maintainers are ABSOLUTE rockstars, but it still takes time to organize everything so we can efficiently get through all the issues and PRs. But rest assured, we are working hard and even working on some partnerships behind the scenes to really help this project take off!
2732

28-
### How do local LLMs fair compared to larger models like Claude 3.5 Sonnet for Bolt.diy/Bolt.new?
33+
### How do local LLMs fair compared to larger models like Claude 3.5 Sonnet for bolt.diy/bolt.new?
2934

3035
As much as the gap is quickly closing between open source and massive close source models, you’re still going to get the best results with the very large models like GPT-4o, Claude 3.5 Sonnet, and DeepSeek Coder V2 236b. This is one of the big tasks we have at hand - figuring out how to prompt better, use agents, and improve the platform as a whole to make it work better for even the smaller local LLMs!
3136

3237
### I'm getting the error: "There was an error processing this request"
3338

34-
If you see this error within Bolt.diy, that is just the application telling you there is a problem at a high level, and this could mean a number of different things. To find the actual error, please check BOTH the terminal where you started the application (with Docker or pnpm) and the developer console in the browser. For most browsers, you can access the developer console by pressing F12 or right clicking anywhere in the browser and selecting “Inspect”. Then go to the “console” tab in the top right.
39+
If you see this error within bolt.diy, that is just the application telling you there is a problem at a high level, and this could mean a number of different things. To find the actual error, please check BOTH the terminal where you started the application (with Docker or pnpm) and the developer console in the browser. For most browsers, you can access the developer console by pressing F12 or right clicking anywhere in the browser and selecting “Inspect”. Then go to the “console” tab in the top right.
3540

3641
### I'm getting the error: "x-api-key header missing"
3742

38-
We have seen this error a couple times and for some reason just restarting the Docker container has fixed it. This seems to be Ollama specific. Another thing to try is try to run Bolt.diy with Docker or pnpm, whichever you didn’t run first. We are still on the hunt for why this happens once and a while!
43+
We have seen this error a couple times and for some reason just restarting the Docker container has fixed it. This seems to be Ollama specific. Another thing to try is try to run bolt.diy with Docker or pnpm, whichever you didn’t run first. We are still on the hunt for why this happens once and a while!
3944

40-
### I'm getting a blank preview when Bolt.diy runs my app!
45+
### I'm getting a blank preview when bolt.diy runs my app!
4146

42-
We promise you that we are constantly testing new PRs coming into Bolt.diy and the preview is core functionality, so the application is not broken! When you get a blank preview or don’t get a preview, this is generally because the LLM hallucinated bad code or incorrect commands. We are working on making this more transparent so it is obvious. Sometimes the error will appear in developer console too so check that as well.
47+
We promise you that we are constantly testing new PRs coming into bolt.diy and the preview is core functionality, so the application is not broken! When you get a blank preview or don’t get a preview, this is generally because the LLM hallucinated bad code or incorrect commands. We are working on making this more transparent so it is obvious. Sometimes the error will appear in developer console too so check that as well.
4348

44-
### How to add a LLM:
49+
### Everything works but the results are bad
4550

46-
To make new LLMs available to use in this version of Bolt.new, head on over to `app/utils/constants.ts` and find the constant MODEL_LIST. Each element in this array is an object that has the model ID for the name (get this from the provider's API documentation), a label for the frontend model dropdown, and the provider.
51+
This goes to the point above about how local LLMs are getting very powerful but you still are going to see better (sometimes much better) results with the largest LLMs like GPT-4o, Claude 3.5 Sonnet, and DeepSeek Coder V2 236b. If you are using smaller LLMs like Qwen-2.5-Coder, consider it more experimental and educational at this point. It can build smaller applications really well, which is super impressive for a local LLM, but for larger scale applications you want to use the larger LLMs still!
4752

48-
By default, Anthropic, OpenAI, Groq, and Ollama are implemented as providers, but the YouTube video for this repo covers how to extend this to work with more providers if you wish!
53+
### Received structured exception #0xc0000005: access violation
4954

50-
When you add a new model to the MODEL_LIST array, it will immediately be available to use when you run the app locally or reload it. For Ollama models, make sure you have the model installed already before trying to use it here!
55+
If you are getting this, you are probably on Windows. The fix is generally to update the [Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
5156

52-
### Everything works but the results are bad
57+
### How to add an LLM:
5358

54-
This goes to the point above about how local LLMs are getting very powerful but you still are going to see better (sometimes much better) results with the largest LLMs like GPT-4o, Claude 3.5 Sonnet, and DeepSeek Coder V2 236b. If you are using smaller LLMs like Qwen-2.5-Coder, consider it more experimental and educational at this point. It can build smaller applications really well, which is super impressive for a local LLM, but for larger scale applications you want to use the larger LLMs still!
59+
To make new LLMs available to use in this version of bolt.new, head on over to `app/utils/constants.ts` and find the constant MODEL_LIST. Each element in this array is an object that has the model ID for the name (get this from the provider's API documentation), a label for the frontend model dropdown, and the provider.
60+
61+
By default, many providers are already implemented, but the YouTube video for this repo covers how to extend this to work with more providers if you wish!
62+
63+
When you add a new model to the MODEL_LIST array, it will immediately be available to use when you run the app locally or reload it.

0 commit comments

Comments
 (0)