Merge branch 'Niek:main' into main

This commit is contained in:
2024-05-14 09:59:36 +09:00
committed by GitHub
8 changed files with 974 additions and 465 deletions

View File

@@ -237,6 +237,15 @@
"contributions": [ "contributions": [
"code" "code"
] ]
},
{
"login": "UdonCodes",
"name": "Udon",
"avatar_url": "https://avatars.githubusercontent.com/u/143291288?v=4",
"profile": "https://codeberg.org/udon",
"contributions": [
"design"
]
} }
], ],
"files": [ "files": [

View File

@@ -15,7 +15,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '18' node-version: '20'
- name: Lint - name: Lint
run: npm ci && npx eslint . run: npm ci && npx eslint .

View File

@@ -20,13 +20,13 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '18' node-version: '20'
- name: Build - name: Build
run: npm ci && npm run lint && npm run build:github run: npm ci && npm run lint && npm run build:github
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v4
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist publish_dir: ./dist

View File

@@ -142,6 +142,7 @@ To use ChatGPT-web as a desktop application:
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MaksimMisin"><img src="https://avatars.githubusercontent.com/u/6176998?v=4?s=100" width="100px;" alt="Maksim Misin"/><br /><sub><b>Maksim Misin</b></sub></a><br /><a href="https://github.com/Niek/chatgpt-web/commits?author=MaksimMisin" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/MaksimMisin"><img src="https://avatars.githubusercontent.com/u/6176998?v=4?s=100" width="100px;" alt="Maksim Misin"/><br /><sub><b>Maksim Misin</b></sub></a><br /><a href="https://github.com/Niek/chatgpt-web/commits?author=MaksimMisin" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://r-wg.it/"><img src="https://avatars.githubusercontent.com/u/22281217?v=4?s=100" width="100px;" alt="romain.wg"/><br /><sub><b>romain.wg</b></sub></a><br /><a href="https://github.com/Niek/chatgpt-web/commits?author=romainwg" title="Documentation">📖</a></td> <td align="center" valign="top" width="14.28%"><a href="https://r-wg.it/"><img src="https://avatars.githubusercontent.com/u/22281217?v=4?s=100" width="100px;" alt="romain.wg"/><br /><sub><b>romain.wg</b></sub></a><br /><a href="https://github.com/Niek/chatgpt-web/commits?author=romainwg" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://morgan.kr"><img src="https://avatars.githubusercontent.com/u/53516171?v=4?s=100" width="100px;" alt="Morgan"/><br /><sub><b>Morgan</b></sub></a><br /><a href="https://github.com/Niek/chatgpt-web/commits?author=morgan9e" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://morgan.kr"><img src="https://avatars.githubusercontent.com/u/53516171?v=4?s=100" width="100px;" alt="Morgan"/><br /><sub><b>Morgan</b></sub></a><br /><a href="https://github.com/Niek/chatgpt-web/commits?author=morgan9e" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://codeberg.org/udon"><img src="https://avatars.githubusercontent.com/u/143291288?v=4?s=100" width="100px;" alt="Udon"/><br /><sub><b>Udon</b></sub></a><br /><a href="#design-UdonCodes" title="Design">🎨</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -1,4 +1,4 @@
FROM python:3.10.10-alpine3.17 FROM python:3-alpine
WORKDIR /work WORKDIR /work
RUN pip install "fastapi<1.0" "uvicorn<0.22" "lorem-text<=2.1.x" RUN pip install "fastapi<1.0" "uvicorn<0.22" "lorem-text<=2.1.x"

1408
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@
"@fortawesome/free-brands-svg-icons": "^6.4.2", "@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.5.1", "@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1", "@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fullhuman/postcss-purgecss": "^5.0.0", "@fullhuman/postcss-purgecss": "^6.0.0",
"@microsoft/fetch-event-source": "^2.0.1", "@microsoft/fetch-event-source": "^2.0.1",
"@rollup/plugin-dsv": "^3.0.4", "@rollup/plugin-dsv": "^3.0.4",
"@sveltejs/vite-plugin-svelte": "^2.5.2", "@sveltejs/vite-plugin-svelte": "^2.5.2",
@@ -47,7 +47,7 @@
"svelte-local-storage-store": "^0.6.4", "svelte-local-storage-store": "^0.6.4",
"svelte-markdown": "^0.2.3", "svelte-markdown": "^0.2.3",
"svelte-modals": "^1.2.1", "svelte-modals": "^1.2.1",
"svelte-spa-router": "^3.3.0", "svelte-spa-router": "^4.0.1",
"svelte-typeahead": "^4.4.1", "svelte-typeahead": "^4.4.1",
"svelte-use-click-outside": "^1.0.0", "svelte-use-click-outside": "^1.0.0",
"tslib": "^2.6.2", "tslib": "^2.6.2",

View File

@@ -75,6 +75,12 @@ const gpt4 = {
completion: 0.00006, // $0.06 per 1000 tokens completion completion: 0.00006, // $0.06 per 1000 tokens completion
max: 8192 // 8k max token buffer max: 8192 // 8k max token buffer
} }
const gpt4o = {
...chatModelBase,
prompt: 0.000005, // $0.005 per 1000 tokens prompt
completion: 0.000015, // $0.015 per 1000 tokens completion
max: 131072 // 128k max token buffer
}
const gpt432k = { const gpt432k = {
...chatModelBase, ...chatModelBase,
prompt: 0.00006, // $0.06 per 1000 tokens prompt prompt: 0.00006, // $0.06 per 1000 tokens prompt
@@ -103,6 +109,7 @@ export const chatModels : Record<string, ModelDetail> = {
'gpt-3.5-turbo-16k': { ...gpt3516k }, 'gpt-3.5-turbo-16k': { ...gpt3516k },
'gpt-3.5-turbo-16k-0613': { ...gpt3516k }, 'gpt-3.5-turbo-16k-0613': { ...gpt3516k },
'gpt-4': { ...gpt4 }, 'gpt-4': { ...gpt4 },
'gpt-4o': { ...gpt4o },
'gpt-4-turbo-preview': { ...gpt4128kpreview }, 'gpt-4-turbo-preview': { ...gpt4128kpreview },
'gpt-4-turbo-2024-04-09': { ...gpt4128kpreview }, 'gpt-4-turbo-2024-04-09': { ...gpt4128kpreview },
'gpt-4-0314': { ...gpt4 }, 'gpt-4-0314': { ...gpt4 },