Initial release of forked chatpad with gpt-4-1106-preview

This commit is contained in:
Jeremy Marjollet 2023-11-08 17:14:58 +01:00
parent e8240a7bef
commit 4fad059f19
6 changed files with 1307 additions and 1608 deletions

66
.circleci/config.yml Normal file
View file

@ -0,0 +1,66 @@
version: 2.1
executors:
buildpack:
docker:
- image: circleci/buildpack-deps:stretch
working_directory: ~/repo
jobs:
build-docker-image:
executor: buildpack
steps:
- checkout
- setup_remote_docker
- run:
name: NPM Install
command: npm ci
- run:
name: Build app
command: npm run build
- run:
name: Build docker image
command: docker build -t chatpad .
publish-latest-docker-image:
executor: buildpack
steps:
- checkout
- setup_remote_docker
- run:
name: NPM Install
command: npm ci
- run:
name: Build app
command: npm run build
- run:
name: Build docker image
command: |
docker build --target chatpad -t "aegirops/chatpad:latest" -t "aegirops/chatpad:${CIRCLE_TAG}" . --no-cache
- run:
name: Publish Docker Image to Docker Hub
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push aegirops/chatpad:latest
docker push aegirops/chatpad:${CIRCLE_TAG}
workflows:
build-test:
jobs:
- build-docker-image:
filters:
branches:
only:
- /.*/
publish:
jobs:
- publish-latest-docker-image:
context: dockerGcloudCli
filters:
branches:
ignore:
- /.*/
tags:
only:
- /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/

View file

@ -1,39 +0,0 @@
name: ci-docker
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}, ghcr.io/${{ github.repository }}:latest

17
package-lock.json generated
View file

@ -45,6 +45,7 @@
"buffer": "^5.7.1",
"parcel": "^2.8.3",
"parcel-reporter-static-files-copy": "^1.5.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10"
}
},
@ -2966,9 +2967,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001466",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001466.tgz",
"integrity": "sha512-ewtFBSfWjEmxUgNBSZItFSmVtvk9zkwkl1OfRZlKA8slltRN+/C/tuGVrF9styXkN36Yu3+SeJ1qkXxDEyNZ5w==",
"version": "1.0.30001561",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001561.tgz",
"integrity": "sha512-NTt0DNoKe958Q0BE0j0c1V9jbUzhBxHIEJy7asmGrpE0yG63KTV7PLHPnK2E1O9RsQrQ081I3NLuXGS6zht3cw==",
"funding": [
{
"type": "opencollective",
@ -2977,6 +2978,10 @@
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
},
@ -10371,9 +10376,9 @@
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="
},
"caniuse-lite": {
"version": "1.0.30001466",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001466.tgz",
"integrity": "sha512-ewtFBSfWjEmxUgNBSZItFSmVtvk9zkwkl1OfRZlKA8slltRN+/C/tuGVrF9styXkN36Yu3+SeJ1qkXxDEyNZ5w=="
"version": "1.0.30001561",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001561.tgz",
"integrity": "sha512-NTt0DNoKe958Q0BE0j0c1V9jbUzhBxHIEJy7asmGrpE0yG63KTV7PLHPnK2E1O9RsQrQ081I3NLuXGS6zht3cw=="
},
"ccount": {
"version": "2.0.1",

View file

@ -18,8 +18,8 @@
"@types/react-dom": "^18.0.11",
"buffer": "^5.7.1",
"parcel": "^2.8.3",
"path-browserify": "^1.0.1",
"parcel-reporter-static-files-copy": "^1.5.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10"
},
"dependencies": {

View file

@ -1,227 +1,231 @@
{
"defaultModel": "gpt-3.5-turbo",
"defaultType": "openai",
"defaultAuth": "api-key",
"defaultBase": "",
"defaultVersion": "",
"defaultKey": "",
"availableModels": [
{
"value": "gpt-3.5-turbo",
"label": "GPT-3.5-TURBO (Default ChatGPT)"
},
{
"value": "gpt-3.5-turbo-0613",
"label": "GPT-3.5-TURBO-0613"
},
{
"value": "gpt-3.5-turbo-0301",
"label": "GPT-3.5-TURBO-0301 (Legacy)"
},
{
"value": "gpt-3.5-turbo-16k",
"label": "GPT-3.5-TURBO-16K"
},
{
"value": "gpt-3.5-turbo-16k-0613",
"label": "GPT-3.5-TURBO-16K-0613"
},
{
"value": "gpt-4",
"label": "GPT-4 (Limited Beta)"
},
{
"value": "gpt-4-0613",
"label": "GPT-4-0613 (Limited Beta)"
},
{
"value": "gpt-4-0314",
"label": "GPT-4-0314 (Limited Beta, Legacy)"
},
{
"value": "gpt-4-32k",
"label": "GPT-4-32K (Limited Beta)"
},
{
"value": "gpt-4-32k-0613",
"label": "GPT-4-32K-0613 (Limited Beta)"
},
{
"value": "gpt-4-32k-0314",
"label": "GPT-4-32K-0314 (Limited Beta, Legacy)"
}
],
"writingCharacters": [
{
"label": "Standup Comedian",
"value": "A performer who entertains audiences by telling jokes and humorous stories."
},
{
"label": "Life Coach",
"value": "A professional who helps individuals identify and achieve their personal and professional goals."
},
{
"label": "Career Counselor",
"value": "A professional who helps individuals explore and choose careers, develop job search strategies, and improve job performance."
},
{
"label": "Nutritionist",
"value": "A health professional who specializes in the study of nutrition and its effects on the body."
},
{
"label": "Product Manager",
"value": "A professional who oversees the development and marketing of a company's products."
},
{
"label": "Personal Trainer",
"value": "A fitness professional who works with individuals to develop personalized exercise programs and improve their overall health and fitness."
},
{
"label": "Life Hacker",
"value": "A person who uses unconventional methods to solve problems and increase productivity in everyday life."
},
{
"label": "Travel Advisor",
"value": "A professional who helps individuals plan and book travel arrangements."
},
{
"label": "Mindfulness Coach",
"value": "A professional who helps individuals develop mindfulness practices to reduce stress and improve well-being."
},
{
"label": "Financial Advisor",
"value": "A professional who provides guidance and advice on financial planning, investment strategies, and retirement planning."
},
{
"label": "Language Tutor",
"value": "A teacher who helps individuals learn and improve their language skills."
},
{
"label": "Travel Guide",
"value": "A professional who leads tours and provides information about local attractions and culture."
},
{
"label": "Marketing Expert",
"value": "A professional who develops and implements marketing strategies to promote products and services."
},
{
"label": "Software Developer",
"value": "A professional who designs, develops, and maintains software applications and systems."
},
{
"label": "Dating Coach",
"value": "A professional who helps individuals improve their dating and relationship skills."
},
{
"label": "DIY Expert",
"value": "A person who is skilled at completing a wide range of do-it-yourself projects around the home."
},
{
"label": "Journalist",
"value": "A professional who investigates and reports on current events and news stories."
},
{
"label": "Tech Writer",
"value": "A professional who writes about technology and related topics for a variety of audiences."
},
{
"label": "Professional Chef",
"value": "A skilled culinary professional who prepares meals and manages kitchen operations."
},
{
"label": "Professional Salesperson",
"value": "A professional who sells products and services to businesses and consumers."
},
{
"label": "Startup Tech Lawyer",
"value": "A legal professional who specializes in providing legal advice and services to startup technology companies."
},
{
"label": "Graphic Designer",
"value": "A professional who designs visual materials such as logos, brochures, and websites."
},
{
"label": "Academic Researcher",
"value": "A professional who conducts research and produces scholarly work in a particular academic field."
},
{
"label": "Customer Support Agent",
"value": "A professional who provides assistance and support to customers who have questions or problems with a company's products or services."
},
{
"label": "HR Consultant",
"value": "A professional who provides guidance and advice to organizations on human resource management and strategy"
}
],
"writingTones": [
"Assertive",
"Authoritative",
"Casual",
"Confident",
"Condescending",
"Conversational",
"Diplomatic",
"Direct",
"Eloquent",
"Formal",
"Friendly",
"Humorous",
"Informative",
"Inspiring",
"Intense",
"Irritable",
"Joking",
"Polite",
"Sarcastic",
"Sincere",
"Soothing",
"Stern",
"Sympathetic",
"Tactful",
"Witty"
],
"writingStyles": [
"Academic",
"Analytical",
"Argumentative",
"Conversational",
"Creative",
"Critical",
"Descriptive",
"Explanatory",
"Informative",
"Instructive",
"Investigative",
"Journalistic",
"Metaphorical",
"Narrative",
"Persuasive",
"Poetic",
"Satirical",
"Technical"
],
"writingFormats": [
{
"value": "Answer as concise as possible",
"label": "Concise"
},
{
"value": "Think step-by-step",
"label": "Step-by-step"
},
{
"value": "Answer in painstakingly detail",
"label": "Extreme Detail"
},
{
"value": "Explain like I'm five",
"label": "Explain Like I'm Five"
}
],
"showDownloadLink": true,
"allowDarkModeToggle": true,
"allowSettingsModal": true,
"allowDatabaseModal": true,
"showTwitterLink": true,
"showFeedbackLink": true
}
"defaultModel": "gpt-3.5-turbo",
"defaultType": "openai",
"defaultAuth": "api-key",
"defaultBase": "",
"defaultVersion": "",
"defaultKey": "",
"availableModels": [
{
"value": "gpt-3.5-turbo",
"label": "GPT-3.5-TURBO (Default ChatGPT)"
},
{
"value": "gpt-3.5-turbo-0613",
"label": "GPT-3.5-TURBO-0613"
},
{
"value": "gpt-3.5-turbo-0301",
"label": "GPT-3.5-TURBO-0301 (Legacy)"
},
{
"value": "gpt-3.5-turbo-16k",
"label": "GPT-3.5-TURBO-16K"
},
{
"value": "gpt-3.5-turbo-16k-0613",
"label": "GPT-3.5-TURBO-16K-0613"
},
{
"value": "gpt-4",
"label": "GPT-4 (Limited Beta)"
},
{
"value": "gpt-4-0613",
"label": "GPT-4-0613 (Limited Beta)"
},
{
"value": "gpt-4-0314",
"label": "GPT-4-0314 (Limited Beta, Legacy)"
},
{
"value": "gpt-4-32k",
"label": "GPT-4-32K (Limited Beta)"
},
{
"value": "gpt-4-32k-0613",
"label": "GPT-4-32K-0613 (Limited Beta)"
},
{
"value": "gpt-4-32k-0314",
"label": "GPT-4-32K-0314 (Limited Beta, Legacy)"
},
{
"value": "gpt-4-1106-preview",
"label": "GPT-4-1106-Preview"
}
],
"writingCharacters": [
{
"label": "Standup Comedian",
"value": "A performer who entertains audiences by telling jokes and humorous stories."
},
{
"label": "Life Coach",
"value": "A professional who helps individuals identify and achieve their personal and professional goals."
},
{
"label": "Career Counselor",
"value": "A professional who helps individuals explore and choose careers, develop job search strategies, and improve job performance."
},
{
"label": "Nutritionist",
"value": "A health professional who specializes in the study of nutrition and its effects on the body."
},
{
"label": "Product Manager",
"value": "A professional who oversees the development and marketing of a company's products."
},
{
"label": "Personal Trainer",
"value": "A fitness professional who works with individuals to develop personalized exercise programs and improve their overall health and fitness."
},
{
"label": "Life Hacker",
"value": "A person who uses unconventional methods to solve problems and increase productivity in everyday life."
},
{
"label": "Travel Advisor",
"value": "A professional who helps individuals plan and book travel arrangements."
},
{
"label": "Mindfulness Coach",
"value": "A professional who helps individuals develop mindfulness practices to reduce stress and improve well-being."
},
{
"label": "Financial Advisor",
"value": "A professional who provides guidance and advice on financial planning, investment strategies, and retirement planning."
},
{
"label": "Language Tutor",
"value": "A teacher who helps individuals learn and improve their language skills."
},
{
"label": "Travel Guide",
"value": "A professional who leads tours and provides information about local attractions and culture."
},
{
"label": "Marketing Expert",
"value": "A professional who develops and implements marketing strategies to promote products and services."
},
{
"label": "Software Developer",
"value": "A professional who designs, develops, and maintains software applications and systems."
},
{
"label": "Dating Coach",
"value": "A professional who helps individuals improve their dating and relationship skills."
},
{
"label": "DIY Expert",
"value": "A person who is skilled at completing a wide range of do-it-yourself projects around the home."
},
{
"label": "Journalist",
"value": "A professional who investigates and reports on current events and news stories."
},
{
"label": "Tech Writer",
"value": "A professional who writes about technology and related topics for a variety of audiences."
},
{
"label": "Professional Chef",
"value": "A skilled culinary professional who prepares meals and manages kitchen operations."
},
{
"label": "Professional Salesperson",
"value": "A professional who sells products and services to businesses and consumers."
},
{
"label": "Startup Tech Lawyer",
"value": "A legal professional who specializes in providing legal advice and services to startup technology companies."
},
{
"label": "Graphic Designer",
"value": "A professional who designs visual materials such as logos, brochures, and websites."
},
{
"label": "Academic Researcher",
"value": "A professional who conducts research and produces scholarly work in a particular academic field."
},
{
"label": "Customer Support Agent",
"value": "A professional who provides assistance and support to customers who have questions or problems with a company's products or services."
},
{
"label": "HR Consultant",
"value": "A professional who provides guidance and advice to organizations on human resource management and strategy"
}
],
"writingTones": [
"Assertive",
"Authoritative",
"Casual",
"Confident",
"Condescending",
"Conversational",
"Diplomatic",
"Direct",
"Eloquent",
"Formal",
"Friendly",
"Humorous",
"Informative",
"Inspiring",
"Intense",
"Irritable",
"Joking",
"Polite",
"Sarcastic",
"Sincere",
"Soothing",
"Stern",
"Sympathetic",
"Tactful",
"Witty"
],
"writingStyles": [
"Academic",
"Analytical",
"Argumentative",
"Conversational",
"Creative",
"Critical",
"Descriptive",
"Explanatory",
"Informative",
"Instructive",
"Investigative",
"Journalistic",
"Metaphorical",
"Narrative",
"Persuasive",
"Poetic",
"Satirical",
"Technical"
],
"writingFormats": [
{
"value": "Answer as concise as possible",
"label": "Concise"
},
{
"value": "Think step-by-step",
"label": "Step-by-step"
},
{
"value": "Answer in painstakingly detail",
"label": "Extreme Detail"
},
{
"value": "Explain like I'm five",
"label": "Explain Like I'm Five"
}
],
"showDownloadLink": true,
"allowDarkModeToggle": true,
"allowSettingsModal": true,
"allowDatabaseModal": true,
"showTwitterLink": true,
"showFeedbackLink": true
}

2335
yarn.lock

File diff suppressed because it is too large Load diff