Skip to content

Commit

Permalink
Added a way to change the model, code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
milutinke committed Nov 14, 2024
1 parent 319ea54 commit e7c9764
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ XAI_API_KEY=

# Include this environment variable if you want more logging for debugging locally
VITE_LOG_LEVEL=debug

# Voice prompting using Whisper
# For OpneAI: https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key
# For Groq: https://console.groq.com/docs/speech-text
# Note: Do not include a / on the end of the URL
WHISPER_PROVIDER_API_URL=https://api.openai.com
WHISPER_PROVIDER_API_KEY=
# If left blank, will default to 'whisper-1'
WHISPER_PROVIDER_MODEL=
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This fork of Bolt.new allows you to choose the LLM that you use for each prompt!
- ✅ Publish projects directly to GitHub (@goncaloalves)
- ✅ Ability to enter API keys in the UI (@ali00209)
- ✅ xAI Grok Beta Integration (@milutinke)
- ✅ Voice prompting (@milutinke)
-**HIGH PRIORITY** - Prevent Bolt from rewriting files as often (file locking and diffs)
-**HIGH PRIORITY** - Better prompting for smaller LLMs (code window sometimes doesn't start)
-**HIGH PRIORITY** Load local projects into the app
Expand All @@ -39,7 +40,6 @@ This fork of Bolt.new allows you to choose the LLM that you use for each prompt!
- ⬜ Have LLM plan the project in a MD file for better results/transparency
- ⬜ VSCode Integration with git-like confirmations
- ⬜ Upload documents for knowledge - UI design templates, a code base to reference coding style, etc.
- ⬜ Voice prompting

# Bolt.new: AI-Powered Full-Stack Web Development in the Browser

Expand Down
3 changes: 1 addition & 2 deletions app/routes/api.voice-to-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ export async function action({ request }: { request: Request }) {
};
const formDataToSend = new FormData();
formDataToSend.append('file', audioFile as Blob, 'audio.wav');
formDataToSend.append('model', 'whisper-1');
formDataToSend.append('model', env.WHISPER_PROVIDER_MODEL || 'whisper-1');

const env = process.env;
const baseUrl = env.WHISPER_PROVIDER_API_URL;
const apiKey = env.WHISPER_PROVIDER_API_KEY;

Expand Down

0 comments on commit e7c9764

Please sign in to comment.