-
Notifications
You must be signed in to change notification settings - Fork 60.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test #4862
test #4862
Changes from 43 commits
7115eb0
d57d67a
23a9651
7349932
c7b9278
b64469a
2bd0101
053522c
a033e60
6c7457e
5605f85
65abdfd
c55de3c
040bd93
c0b3fab
8f6b69a
2d597b1
e39619b
33621b3
d629b96
2d8d2aa
691ae97
7b71418
aad8188
8315729
00618b0
85fea1b
b76a5eb
4f9b980
c37c82f
72ff411
c3028b3
cc72433
8424914
1a43440
3407a5f
a64cf09
f89b803
fd3eadc
b7e59b5
1d69323
2713e18
c271b87
e1f1218
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
<div align="center"> | ||
<img src="./docs/images/icon.svg" alt="预览"/> | ||
|
||
<h1 align="center">TimoChat</h1> | ||
|
||
Implemente su aplicación web privada ChatGPT de forma gratuita con un solo clic. | ||
|
||
[Demo demo](https://chat-gpt-next-web.vercel.app/) / [Problemas de comentarios](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [Únete a Discord](https://discord.gg/zrhvHCr79N) / [Grupo QQ](https://user-images.githubusercontent.com/16968934/228190818-7dd00845-e9b9-4363-97e5-44c507ac76da.jpeg) / [Desarrolladores de consejos](https://user-images.githubusercontent.com/16968934/227772541-5bcd52d8-61b7-488c-a203-0330d8006e2b.jpg) / [Donar](#捐赠-donate-usdt) | ||
|
||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web) | ||
|
||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web) | ||
|
||
![主界面](./docs/images/cover.png) | ||
|
||
</div> | ||
|
||
## Comenzar | ||
|
||
1. Prepara el tuyo [Clave API OpenAI](https://platform.openai.com/account/api-keys); | ||
2. Haga clic en el botón de la derecha para iniciar la implementación: | ||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web), inicie sesión directamente con su cuenta de Github y recuerde completar la clave API y la suma en la página de variables de entorno[Contraseña de acceso a la página](#配置页面访问密码) CÓDIGO; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification The section header
Analysis chainVerify that the link fragment is valid and points to the correct location. Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify that the link fragment is valid.
rg --type markdown '#配置页面访问密码'
Length of output: 872 Script: #!/bin/bash
# Description: Verify the existence of the section header '#配置页面访问密码' in README_ES.md.
rg --type markdown '^#配置页面访问密码' README_ES.md
Length of output: 46 ToolsMarkdownlint
|
||
3. Una vez implementado, puede comenzar; | ||
4. (Opcional)[Enlazar un nombre de dominio personalizado](https://vercel.com/docs/concepts/projects/domains/add-a-domain): El nombre de dominio DNS asignado por Vercel está contaminado en algunas regiones y puede conectarse directamente enlazando un nombre de dominio personalizado. | ||
|
||
## Manténgase actualizado | ||
|
||
Si sigue los pasos anteriores para implementar su proyecto con un solo clic, es posible que siempre diga "La actualización existe" porque Vercel creará un nuevo proyecto para usted de forma predeterminada en lugar de bifurcar el proyecto, lo que evitará que la actualización se detecte correctamente. | ||
Le recomendamos que siga estos pasos para volver a implementar: | ||
|
||
- Eliminar el repositorio original; | ||
- Utilice el botón de bifurcación en la esquina superior derecha de la página para bifurcar este proyecto; | ||
- En Vercel, vuelva a seleccionar e implementar,[Echa un vistazo al tutorial detallado](./docs/vercel-cn.md#如何新建项目)。 | ||
|
||
### Activar actualizaciones automáticas | ||
|
||
> Si encuentra un error de ejecución de Upstream Sync, ¡Sync Fork manualmente una vez! | ||
|
||
Cuando bifurca el proyecto, debido a las limitaciones de Github, debe ir manualmente a la página Acciones de su proyecto bifurcado para habilitar Flujos de trabajo y habilitar Upstream Sync Action, después de habilitarlo, puede activar las actualizaciones automáticas cada hora: | ||
|
||
![自动更新](./docs/images/enable-actions.jpg) | ||
|
||
![启用自动更新](./docs/images/enable-actions-sync.jpg) | ||
|
||
### Actualizar el código manualmente | ||
|
||
Si desea que el manual se actualice inmediatamente, puede consultarlo [Documentación para Github](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) Aprenda a sincronizar un proyecto bifurcado con código ascendente. | ||
|
||
Puede destacar / ver este proyecto o seguir al autor para recibir notificaciones de nuevas actualizaciones de funciones. | ||
|
||
## Configurar la contraseña de acceso a la página | ||
|
||
> Después de configurar la contraseña, el usuario debe completar manualmente el código de acceso en la página de configuración para chatear normalmente, de lo contrario, se solicitará el estado no autorizado a través de un mensaje. | ||
|
||
> **advertir**: Asegúrese de establecer el número de dígitos de la contraseña lo suficientemente largo, preferiblemente más de 7 dígitos, de lo contrario[Será volado](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/518)。 | ||
|
||
Este proyecto proporciona control de permisos limitado, agregue el nombre al nombre en la página Variables de entorno del Panel de control del proyecto Vercel `CODE` Variables de entorno con valores para contraseñas personalizadas separadas por comas: | ||
|
||
code1,code2,code3 | ||
|
||
Después de agregar o modificar la variable de entorno, por favor**Redesplegar**proyecto para poner en vigor los cambios. | ||
|
||
## Variable de entorno | ||
|
||
> La mayoría de los elementos de configuración de este proyecto se establecen a través de variables de entorno, tutorial:[Cómo modificar las variables de entorno de Vercel](./docs/vercel-cn.md)。 | ||
|
||
### `OPENAI_API_KEY` (Requerido) | ||
|
||
OpanAI key, la clave API que solicita en la página de su cuenta openai. | ||
|
||
### `CODE` (Opcional) | ||
|
||
Las contraseñas de acceso, opcionalmente, se pueden separar por comas. | ||
|
||
**advertir**: Si no completa este campo, cualquiera puede usar directamente su sitio web implementado, lo que puede hacer que su token se consuma rápidamente, se recomienda completar esta opción. | ||
|
||
### `BASE_URL` (Opcional) | ||
|
||
> Predeterminado: `https://api.openai.com` | ||
|
||
> Ejemplos: `http://your-openai-proxy.com` | ||
|
||
URL del proxy de interfaz OpenAI, complete esta opción si configuró manualmente el proxy de interfaz openAI. | ||
|
||
> Si encuentra problemas con el certificado SSL, establezca el `BASE_URL` El protocolo se establece en http. | ||
|
||
### `OPENAI_ORG_ID` (Opcional) | ||
|
||
Especifica el identificador de la organización en OpenAI. | ||
|
||
### `HIDE_USER_API_KEY` (Opcional) | ||
|
||
Si no desea que los usuarios rellenen la clave de API ellos mismos, establezca esta variable de entorno en 1. | ||
|
||
### `DISABLE_GPT4` (Opcional) | ||
|
||
Si no desea que los usuarios utilicen GPT-4, establezca esta variable de entorno en 1. | ||
|
||
### `HIDE_BALANCE_QUERY` (Opcional) | ||
|
||
Si no desea que los usuarios consulte el saldo, establezca esta variable de entorno en 1. | ||
|
||
## explotación | ||
|
||
> No se recomienda encarecidamente desarrollar o implementar localmente, debido a algunas razones técnicas, es difícil configurar el agente API de OpenAI localmente, a menos que pueda asegurarse de que puede conectarse directamente al servidor OpenAI. | ||
|
||
Haga clic en el botón de abajo para iniciar el desarrollo secundario: | ||
|
||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web) | ||
|
||
Antes de empezar a escribir código, debe crear uno nuevo en la raíz del proyecto `.env.local` archivo, lleno de variables de entorno: | ||
|
||
OPENAI_API_KEY=<your api key here> | ||
|
||
### Desarrollo local | ||
|
||
1. Instale nodejs 18 e hilo, pregunte a ChatGPT para obtener más detalles; | ||
2. ejecutar `yarn install && yarn dev` Enlatar. ⚠️ Nota: Este comando es solo para desarrollo local, no para implementación. | ||
3. Úselo si desea implementar localmente `yarn install && yarn start` comando, puede cooperar con pm2 a daemon para evitar ser asesinado, pregunte a ChatGPT para obtener más detalles. | ||
|
||
## desplegar | ||
|
||
### Implementación de contenedores (recomendado) | ||
|
||
> La versión de Docker debe ser 20 o posterior, de lo contrario se indicará que no se puede encontrar la imagen. | ||
|
||
> ⚠️ Nota: Las versiones de Docker están de 1 a 2 días por detrás de la última versión la mayor parte del tiempo, por lo que es normal que sigas diciendo "La actualización existe" después de la implementación. | ||
|
||
```shell | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the code block is properly indented as per Markdown standards. - ```shell
+ ```shell ToolsMarkdownlint
|
||
docker pull yidadaa/chatgpt-next-web | ||
|
||
docker run -d -p 3000:3000 \ | ||
-e OPENAI_API_KEY=sk-xxxx \ | ||
-e CODE=your-password \ | ||
yidadaa/chatgpt-next-web | ||
``` | ||
|
||
También puede especificar proxy: | ||
|
||
```shell | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the code block is properly indented as per Markdown standards. - ```shell
+ ```shell ToolsMarkdownlint
|
||
docker run -d -p 3000:3000 \ | ||
-e OPENAI_API_KEY=sk-xxxx \ | ||
-e CODE=your-password \ | ||
--net=host \ | ||
-e PROXY_URL=http://127.0.0.1:7890 \ | ||
yidadaa/chatgpt-next-web | ||
``` | ||
|
||
Si necesita especificar otras variables de entorno, agréguelas usted mismo en el comando anterior `-e 环境变量=环境变量值` para especificar. | ||
|
||
### Implementación local | ||
|
||
Ejecute el siguiente comando en la consola: | ||
|
||
```shell | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the code block is properly indented as per Markdown standards. - ```shell
+ ```shell ToolsMarkdownlint
|
||
bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh) | ||
``` | ||
|
||
⚠️ Nota: Si tiene problemas durante la instalación, utilice la implementación de Docker. | ||
|
||
## Reconocimiento | ||
|
||
### donante | ||
|
||
> Ver versión en inglés. | ||
|
||
### Colaboradores | ||
|
||
[Ver la lista de colaboradores del proyecto](https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors) | ||
|
||
## Licencia de código abierto | ||
|
||
[MIT](https://opensource.org/license/mit/) |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -155,13 +155,14 @@ export function SideBar(props: { className?: string }) { | |||||||||||||||||||||||||||||
> | ||||||||||||||||||||||||||||||
<div className={styles["sidebar-header"]} data-tauri-drag-region> | ||||||||||||||||||||||||||||||
<div className={styles["sidebar-title"]} data-tauri-drag-region> | ||||||||||||||||||||||||||||||
NextChat | ||||||||||||||||||||||||||||||
Timo Chat | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
<div className={styles["sidebar-sub-title"]}> | ||||||||||||||||||||||||||||||
Build your own AI assistant. | ||||||||||||||||||||||||||||||
Chat with your AI assistant. | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
<div className={styles["sidebar-logo"] + " no-dark"}> | ||||||||||||||||||||||||||||||
<ChatGptIcon /> | ||||||||||||||||||||||||||||||
{/* <ChatGptIcon /> */} | ||||||||||||||||||||||||||||||
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M512 910.234c-92.774 0-178.995-24.27-250.88-65.946L115.2 891.392c-6.349 2.048-13.312 1.843-19.558-.717-14.541-5.939-21.504-22.528-15.565-37.069l50.79-123.801C84.07 667.136 56.934 592.384 56.934 512c0-219.955 203.776-398.234 455.066-398.234S967.066 292.045 967.066 512 763.392 910.234 512 910.234zm0-341.3c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934S455.066 480.563 455.066 512s25.497 56.934 56.934 56.934zm-227.533 0c31.437 0 56.935-25.497 56.935-56.934 0-31.437-25.498-56.934-56.935-56.934S227.533 480.563 227.533 512c0 31.437 25.497 56.934 56.934 56.934zm455.066 0c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934-31.437 0-56.935 25.497-56.935 56.934.103 31.437 25.498 56.934 56.935 56.934z" fill="#8BCAE0"></path></svg> | ||||||||||||||||||||||||||||||
Comment on lines
+158
to
+165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update the sidebar logo to use the new SVG logo. Ensure the SVG has appropriate accessibility tags. - {/* <ChatGptIcon /> */}
+ {/* SVG logo updated for Timo Chat */}
+ <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48" aria-labelledby="logoTitle">
+ <title id="logoTitle">Timo Chat Logo</title>
+ <path d="M512 910.234c-92.774 0-178.995-24.27-250.88-65.946L115.2 891.392c-6.349 2.048-13.312 1.843-19.558-.717-14.541-5.939-21.504-22.528-15.565-37.069l50.79-123.801C84.07 667.136 56.934 592.384 56.934 512c0-219.955 203.776-398.234 455.066-398.234S967.066 292.045 967.066 512 763.392 910.234 512 910.234zm0-341.3c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934S455.066 480.563 455.066 512s25.497 56.934 56.934 56.934zm-227.533 0c31.437 0 56.935-25.497 56.935-56.934 0-31.437-25.498-56.934-56.935-56.934S227.533 480.563 227.533 512c0 31.437 25.497 56.934 56.934 56.934zm455.066 0c31.437 0 56.934-25.497 56.934-56.934 0-31.437-25.497-56.934-56.934-56.934-31.437 0-56.935 25.497-56.935 56.934.103 31.437 25.498 56.934 56.935 56.934z" fill="#8BCAE0"></path></svg> Committable suggestion
Suggested change
ToolsBiome
|
||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
@@ -215,12 +216,7 @@ export function SideBar(props: { className?: string }) { | |||||||||||||||||||||||||||||
<Link to={Path.Settings}> | ||||||||||||||||||||||||||||||
<IconButton icon={<SettingsIcon />} shadow /> | ||||||||||||||||||||||||||||||
</Link> | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
<div className={styles["sidebar-action"]}> | ||||||||||||||||||||||||||||||
<a href={REPO_URL} target="_blank" rel="noopener noreferrer"> | ||||||||||||||||||||||||||||||
<IconButton icon={<GithubIcon />} shadow /> | ||||||||||||||||||||||||||||||
</a> | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||||||
<div> | ||||||||||||||||||||||||||||||
<IconButton | ||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
{ | ||
"name": "NextChat", | ||
"short_name": "NextChat", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "/", | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} | ||
"name": "Timo Chat", | ||
"short_name": "ChatGPT", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "/", | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
The current repository URL is
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
. However, the links inREADME_ES.md
still point tohttps://github.com/Yidadaa/ChatGPT-Next-Web
, indicating that they have not been updated to reflect the new repository URL.To address this, the following links in
README_ES.md
need to be updated:https://github.com/Yidadaa/ChatGPT-Next-Web/issues
should be updated tohttps://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues
https://github.com/Yidadaa/ChatGPT-Next-Web
should be updated tohttps://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors
should be updated tohttps://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/graphs/contributors
Please update these links to ensure they point to the correct repository.
[Problemas de comentarios](https://github.com/Yidadaa/ChatGPT-Next-Web/issues)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web)
[Ver la lista de colaboradores del proyecto](https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors)
Analysis chain
Ensure that the links are correctly updated to point to the new repository URLs if necessary.
The review comment suggests ensuring that the links in
README_ES.md
are correctly updated to point to the new repository URLs if necessary. Therg
command output shows multiple instances of URLs pointing tohttps://github.com/Yidadaa/ChatGPT-Next-Web
in various markdown files, includingREADME_ES.md
.To proceed, we need to identify the correct new repository URLs and compare them with the current URLs in
README_ES.md
.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 7746
Script:
Length of output: 82
Script:
Length of output: 8440
Tools
LanguageTool
Markdownlint