当前位置: 首页 > wzjs >正文

沧州泊头纯设计网站制作外贸常用网站

沧州泊头纯设计网站制作,外贸常用网站,专业的河南网站建设价格,网址导航哪个主页最好前段时间发现了:AI自动化制作web和手机应用软件的利器:bolt.new-CSDN博客 但是它只能使用anthropic的claude-3-5-sonnet-20240620模型,这使它的AI能力大打折扣,那么有办法使用其它模型吗?可以的,bolt.diy可…

前段时间发现了:AI自动化制作web和手机应用软件的利器:bolt.new-CSDN博客

但是它只能使用anthropic的claude-3-5-sonnet-20240620模型,这使它的AI能力大打折扣,那么有办法使用其它模型吗?可以的,bolt.diy可以使用各种AI大模型!官网:https://github.com/stackblitz-labs/bolt.diy

下载软件源代码

git clone https://github.com/stackblitz-labs/bolt.diy

安装和启动

进入bolt.diy目录,然后执行

npm install -g pnpm
pnpm install
pnpm run dev

启动后输出

pnpm run dev> bolt@0.0.7 dev E:\github\bolt.diy
> node pre-start.cjs  && remix vite:dev★═══════════════════════════════════════★B O L T . D I Y⚡️  Welcome  ⚡️
★═══════════════════════════════════════★📍 Current Version Tag: v"0.0.7"
📍 Current Commit Version: "0202aef"Please wait until the URL appears here
★═══════════════════════════════════════★warn  Data fetching is changing to a single fetch in React Router v7
┃ You can use the `v3_singleFetch` future flag to opt-in early.
┃ -> https://remix.run/docs/en/2.13.1/start/future-flags#v3_singleFetch
┗➜  Local:   http://localhost:5173/➜  Network: use --host to expose➜  press h + enter to show help

 登录 http://localhost:5173/

可以看到跟踪信息里有支持的AI模型列表:

 INFO   LLMManager  Registering Provider:  AnthropicINFO   LLMManager  Registering Provider:  CohereINFO   LLMManager  Registering Provider:  DeepseekINFO   LLMManager  Registering Provider:  GoogleINFO   LLMManager  Registering Provider:  GroqINFO   LLMManager  Registering Provider:  HuggingFaceINFO   LLMManager  Registering Provider:  HyperbolicINFO   LLMManager  Registering Provider:  MistralINFO   LLMManager  Registering Provider:  OllamaINFO   LLMManager  Registering Provider:  OpenAIINFO   LLMManager  Registering Provider:  OpenRouterINFO   LLMManager  Registering Provider:  OpenAILikeINFO   LLMManager  Registering Provider:  PerplexityINFO   LLMManager  Registering Provider:  xAIINFO   LLMManager  Registering Provider:  TogetherINFO   LLMManager  Registering Provider:  LMStudioINFO   LLMManager  Registering Provider:  AmazonBedrockINFO   LLMManager  Registering Provider:  Github

配置模型

登录页面后,显示配置页面:

但是我咋没有找到Ollama 、LMStudio或者OpenAI兼容模型配置呢? 

算了,用OpenAI试试吧。

 明白了,原来是要配置.env文件,官方给了.env.example文件:

# Rename this file to .env once you have filled in the below environment variables!# Get your GROQ API Key here -
# https://console.groq.com/keys
# You only need this environment variable set if you want to use Groq models
GROQ_API_KEY=# Get your HuggingFace API Key here -
# https://huggingface.co/settings/tokens
# You only need this environment variable set if you want to use HuggingFace models
HuggingFace_API_KEY=# Get your Open AI API Key by following these instructions -
# https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key
# You only need this environment variable set if you want to use GPT models
OPENAI_API_KEY=# Get your Anthropic API Key in your account settings -
# https://console.anthropic.com/settings/keys
# You only need this environment variable set if you want to use Claude models
ANTHROPIC_API_KEY=# Get your OpenRouter API Key in your account settings -
# https://openrouter.ai/settings/keys
# You only need this environment variable set if you want to use OpenRouter models
OPEN_ROUTER_API_KEY=# Get your Google Generative AI API Key by following these instructions -
# https://console.cloud.google.com/apis/credentials
# You only need this environment variable set if you want to use Google Generative AI models
GOOGLE_GENERATIVE_AI_API_KEY=# You only need this environment variable set if you want to use oLLAMA models
# DONT USE http://localhost:11434 due to IPV6 issues
# USE EXAMPLE http://127.0.0.1:11434
OLLAMA_API_BASE_URL=# You only need this environment variable set if you want to use OpenAI Like models
OPENAI_LIKE_API_BASE_URL=# You only need this environment variable set if you want to use Together AI models
TOGETHER_API_BASE_URL=# You only need this environment variable set if you want to use DeepSeek models through their API
DEEPSEEK_API_KEY=# Get your OpenAI Like API Key
OPENAI_LIKE_API_KEY=# Get your Together API Key
TOGETHER_API_KEY=# You only need this environment variable set if you want to use Hyperbolic models
#Get your Hyperbolics API Key at https://app.hyperbolic.xyz/settings
#baseURL="https://api.hyperbolic.xyz/v1/chat/completions"
HYPERBOLIC_API_KEY=
HYPERBOLIC_API_BASE_URL= # Get your Mistral API Key by following these instructions -
# https://console.mistral.ai/api-keys/
# You only need this environment variable set if you want to use Mistral models
MISTRAL_API_KEY=# Get the Cohere Api key by following these instructions -
# https://dashboard.cohere.com/api-keys
# You only need this environment variable set if you want to use Cohere models
COHERE_API_KEY=# Get LMStudio Base URL from LM Studio Developer Console
# Make sure to enable CORS
# DONT USE http://localhost:1234 due to IPV6 issues
# Example: http://127.0.0.1:1234
LMSTUDIO_API_BASE_URL=# Get your xAI API key
# https://x.ai/api
# You only need this environment variable set if you want to use xAI models
XAI_API_KEY=# Get your Perplexity API Key here - 
# https://www.perplexity.ai/settings/api
# You only need this environment variable set if you want to use Perplexity models
PERPLEXITY_API_KEY=# Get your AWS configuration
# https://console.aws.amazon.com/iam/home
# The JSON should include the following keys:
#   - region: The AWS region where Bedrock is available.
#   - accessKeyId: Your AWS access key ID.
#   - secretAccessKey: Your AWS secret access key.
#   - sessionToken (optional): Temporary session token if using an IAM role or temporary credentials.
# Example JSON:
# {"region": "us-east-1", "accessKeyId": "yourAccessKeyId", "secretAccessKey": "yourSecretAccessKey", "sessionToken": "yourSessionToken"}
AWS_BEDROCK_CONFIG=# Include this environment variable if you want more logging for debugging locally
VITE_LOG_LEVEL=debug# Get your GitHub Personal Access Token here -
# https://github.com/settings/tokens
# This token is used for:
# 1. Importing/cloning GitHub repositories without rate limiting
# 2. Accessing private repositories
# 3. Automatic GitHub authentication (no need to manually connect in the UI)
# 
# For classic tokens, ensure it has these scopes: repo, read:org, read:user
# For fine-grained tokens, ensure it has Repository and Organization access
VITE_GITHUB_ACCESS_TOKEN=# Specify the type of GitHub token you're using
# Can be 'classic' or 'fine-grained'
# Classic tokens are recommended for broader access
VITE_GITHUB_TOKEN_TYPE=classic# Example Context Values for qwen2.5-coder:32b
# 
# DEFAULT_NUM_CTX=32768 # Consumes 36GB of VRAM
# DEFAULT_NUM_CTX=24576 # Consumes 32GB of VRAM
# DEFAULT_NUM_CTX=12288 # Consumes 26GB of VRAM
# DEFAULT_NUM_CTX=6144 # Consumes 24GB of VRAM
DEFAULT_NUM_CTX=

还是用自建AI服务器,创建.env文件,文件内容 

OPENAI_API_KEY="your_api_key_here"
OPENAI_BASE_URL="http://192.168.1.5:1337/v1"

最终试验下来这样写

OPENAI_LIKE_API_BASE_URL="http://192.168.1.5:1337/v1"
LMSTUDIO_API_BASE_URL="http://192.168.1.5:1337/v1"

 但是配置了还是没起作用啊,而且根本看不到Ollama 、LMStudio或者OpenAI兼容模型啊?

明白了,原来配置文件是.env.production 。修改它,加上前面的两句,还是不行。

说:Click the settings icon in the sidebar to open the settings menu

但是我没有找到这个按钮啊,明白了,原来是因为我用了360浏览器,结果它左边弄了很多广告图标,导致我把最下面的配置图标也当成了广告。

就这样:

最下面这个配置图标,就是bole.diy的,这是大人能干出来的事? 

点进去,打开本地大模型选项,终于可以配置了Ollama 、LMStudio和OpenAI兼容模型了!

 INFO   api.llmcall  Generating response Provider: OpenAILike, Model: deepseek-v3

这样模型终于配置完成了!

测试

用这个prompt

帮我建一个类似“雷电”打飞机的游戏页面,使用html5,飞机可以左右移动,用左右方向键移动。景物和障碍从上向下滚动。按空格键发射子弹,子弹击中障碍物后,障碍物消失,并得10分。点击“开始游戏”开始,得分达到100分通关,输出“恭喜通关!”

 运行后,卡在这里:

Analysis Complete

Determining Files to Read

不知道咋回事。

但至少,确实自动生成了很多文件


文章转载自:

http://cV3TFPhO.tndhm.cn
http://6OKGWZEY.tndhm.cn
http://fGI9A1ak.tndhm.cn
http://IzraH2HC.tndhm.cn
http://6LyGbfPE.tndhm.cn
http://fAE82uln.tndhm.cn
http://1N6oVpMn.tndhm.cn
http://64RkOc0M.tndhm.cn
http://kHMQP4w0.tndhm.cn
http://gnj4VYGY.tndhm.cn
http://Wc6R1SzB.tndhm.cn
http://6NzIKVzM.tndhm.cn
http://jh3oI6CO.tndhm.cn
http://okOUAspA.tndhm.cn
http://JyNgraVA.tndhm.cn
http://cI1PX781.tndhm.cn
http://XPuxFxDO.tndhm.cn
http://JilPc5IM.tndhm.cn
http://v1PTKxmp.tndhm.cn
http://bTPHVkAc.tndhm.cn
http://27nfyHhW.tndhm.cn
http://1zYFqN1K.tndhm.cn
http://xrRz68AT.tndhm.cn
http://Jq1Szumo.tndhm.cn
http://ZSCNqjT3.tndhm.cn
http://QCdIBNBC.tndhm.cn
http://WJAHITcj.tndhm.cn
http://s9u2cXBL.tndhm.cn
http://qcb3amh6.tndhm.cn
http://AFwTPfY8.tndhm.cn
http://www.dtcms.com/wzjs/738888.html

相关文章:

  • 长城集团建设有限公司网站杭州全案设计公司
  • 网络设计的安全性原则主要是指西安网站seo分析
  • 网站是哪个建站公司做的建设安全监督网
  • 如何用网站赚钱杭州网站建设宣盟网络
  • 免费制作网站软件保定建设厅网站
  • php完整电商网站开发源码武宁网站ui专业设计
  • 外贸电子网站海外服务器哪家好
  • 黑龙江省建设协会网站wordpress 添加中文字体
  • 手机网站 免费 html网站密码怎么做
  • 公司网站数据库使用cdn的网站
  • 律师做网络推广哪个网站好北京市住房城乡建设部网站首页
  • 为什么淘宝店主不自己做电商网站建站工具免费
  • 工业部网站备案都江堰网站建设
  • 手机网站建设liedns本人已履行网站备案信息
  • 时尚女装网站模版wordpress 更换ip
  • 站长号响应式网站建设哪里有
  • 建设商务网站ppt阿里云服务器windows系统网站搭建教程
  • 一个网站做各种好玩的实验网页设计设计网站建设
  • 做免费小说网站怎样赚钱百度指数功能有哪些
  • 怎么用ps做简单网站首页网站营销方法
  • 有没有人一起做网站天元建设集团有限公司项目
  • 开发商延期交房怎么办广州seo服务
  • 浙江建筑信息网站多用户网店系统
  • 可以用足球做的游戏视频网站wordpress后台进不去
  • 开网站建设工作是如何十五种网络营销工具
  • 传奇手机版网站淘宝网店代运营正规公司
  • 购物网站建设要求网页版哔哩哔哩
  • 衡水网站建设衡水网站建设和网页设计的关系
  • 关键词查询的分析网站wordpress主题如何汉化
  • 大型商家进驻网站开发周口网站建设 网站制作 网络推广