colab部署text-to-sql

1.GitHub验证申请:

https://github.com/settings/apps/new

教程(第三方登陆auth(github)_github auth-CSDN博客)https://www.ruanyifeng.com/blog/2019/04/github-oauth.html

复制代码
git clone https://github.com/supabase-community/postgres-new.git

3..env.example改为.env

复制代码
SUPABASE_AUTH_GITHUB_CLIENT_ID=Iv23linqH7
SUPABASE_AUTH_GITHUB_SECRET=2b41e6ae04d0445a
SUPABASE_AUTH_GITHUB_REDIRECT_URI=http://localhost:54321/auth/v1/callback

4.数据库配置

复制代码
cd ./postgres-new/apps/db-service

npm run generate:certs

sudo npm install pg-gateway@^0.2.5-alpha.2

npm run dev


psql "host=localhost port=5432 user=postgres"

psql "host=localhost port=5432 user=postgres password=postgres"

5.启动项目

复制代码
cd ./postgres-new/apps/postgres-new

npm i

npx supabase start

npx supabase status -o env \
  --override-name api.url=NEXT_PUBLIC_SUPABASE_URL \
  --override-name auth.anon_key=NEXT_PUBLIC_SUPABASE_ANON_KEY |
    grep NEXT_PUBLIC >> .env.local

echo 'OPENAI_API_KEY="<openai-api-key>"' >> .env.local

npm run dev
相关推荐
啵啵啵鱼4 小时前
Chrome 内存泄漏诊断指南
人工智能
Mirawork4 小时前
AI 低代码建站原理:从自然语言需求到在线应用,拆解 AI 生成网页的完整技术链路
人工智能·低代码·ai·ai编程
xsd202411185 小时前
rea-video开源 AI 视频逆向工具
人工智能
thinking_talk5 小时前
AI 自动诊断慢 SQL 怎么落地:五层能力怎么分,以及生产可用要过哪几道门槛
数据库·人工智能·sql·慢sql
码上观世界6 小时前
IndexTTS接入实时交互数字人系统实践
人工智能·实时互动
具身AGI6 小时前
进博会机器人,隔桌对打乒乓球
人工智能·机器人
逐米时代6 小时前
「制造新解法」行业对标方法:借鉴而不照搬的最佳实践
人工智能·算法·制造
小追兵6 小时前
Claude Managed Agents 自托管是什么?企业如何控制 Agent Runtime、Session 与数据?
人工智能
Wellijohn6 小时前
上下文工程实战:把大模型 Agent 从「能跑」做到「上线不掉链子」
人工智能·llm·agent
JavaGuide6 小时前
Gemini 杀疯了,反重力给我用爽了!分享 8 个 Antigravity 使用技巧
人工智能·后端