-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #656 from polywrap/release/staging
Release 12/22/23
- Loading branch information
Showing
243 changed files
with
10,111 additions
and
3,993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,54 @@ | ||
################ | ||
### REQUIRED ### | ||
################ | ||
###################### | ||
### CLI (required) ### | ||
###################### | ||
|
||
# OPENAI_API_KEY | ||
# Get it from https://platform.openai.com/account/api-keys | ||
OPENAI_API_KEY= | ||
|
||
# GPT_MODEL | ||
# choose between gpt-3.5-turbo-16k-0613, gpt-4-0613 and gpt-3.5-turbo-0613 | ||
GPT_MODEL="gpt-4-0613" | ||
# choose between gpt-4-1106-preview, gpt-3.5-turbo-16k-0613, gpt-4 and gpt-3.5-turbo-0613 | ||
GPT_MODEL="gpt-4-1106-preview" | ||
|
||
# CONTEXT_WINDOW_TOKENS: | ||
# The size of the context window, used for the agent's short-term memory | ||
CONTEXT_WINDOW_TOKENS=8000 | ||
CONTEXT_WINDOW_TOKENS=128000 | ||
|
||
# MAX_RESPONSE_TOKENS | ||
# The maximum size of the LLM's response | ||
MAX_RESPONSE_TOKENS=2000 | ||
MAX_RESPONSE_TOKENS=4096 | ||
|
||
# SERP_API_KEY | ||
# Get it from https://serpapi.com | ||
# This is necessary for the webScraper.search script to work | ||
SERP_API_KEY= | ||
|
||
# Front-end authentication | ||
########################## | ||
### Browser (required) ### | ||
########################## | ||
|
||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
|
||
GITHUB_CLIENT_ID= | ||
GITHUB_CLIENT_SECRET= | ||
|
||
SUPABASE_URL= | ||
SUPABASE_SERVICE_ROLE_KEY= | ||
SUPABASE_JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long | ||
|
||
NEXT_PUBLIC_SUPABASE_URL= | ||
NEXT_PUBLIC_SUPABASE_ANON_KEY= | ||
|
||
########################################### | ||
### Browser (required for `yarn start`) ### | ||
########################################### | ||
|
||
# Can be anything | ||
NEXTAUTH_JWT_SECRET= | ||
|
||
######################### | ||
### Common (optional) ### | ||
######################### | ||
|
||
# only required for `next dev` | ||
NEXTAUTH_SECRET= | ||
# Custom URL for the OpenAI API endpoint | ||
OPENAI_API_BASE_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: db-production-migration | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/prod | ||
|
||
jobs: | ||
migrate: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_PRODUCTION_DB_PASSWORD }} | ||
SUPABASE_PRODUCTION_PROJECT_ID: ${{ secrets.SUPABASE_PRODUCTION_PROJECT_ID }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./apps/browser | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: supabase/setup-cli@v1 | ||
with: | ||
version: latest | ||
|
||
- run: supabase link --project-ref $SUPABASE_PRODUCTION_PROJECT_ID | ||
- run: supabase db push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: db-staging-migration | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/staging | ||
|
||
jobs: | ||
migrate: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_STAGING_DB_PASSWORD }} | ||
SUPABASE_STAGING_PROJECT_ID: ${{ secrets.SUPABASE_STAGING_PROJECT_ID }} | ||
|
||
defaults: | ||
run: | ||
working-directory: ./apps/browser | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: supabase/setup-cli@v1 | ||
with: | ||
version: latest | ||
|
||
- run: supabase link --project-ref $SUPABASE_STAGING_PROJECT_ID | ||
- run: supabase db push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { getAuthOptions } from "@/lib/api/authOptions"; | ||
import NextAuth from "next-auth"; | ||
import { NextRequest } from "next/server"; | ||
|
||
export function GET(req: NextRequest, res: any) { | ||
return NextAuth(req, res, getAuthOptions()) | ||
} | ||
|
||
export function POST(req: NextRequest, res: any) { | ||
return NextAuth(req, res, getAuthOptions()) | ||
} |
Oops, something went wrong.