Skip to content

Commit 23130fe

Browse files
Update README.md
1 parent 6a4930b commit 23130fe

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

README.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
# ChatGPT
22

3-
[![CI](https://github.com/wieslawsoltes/ChatGPT/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/wieslawsoltes/ChatGPT/actions/workflows/build.yml)
43

54
[![NuGet](https://img.shields.io/nuget/v/ChatGPT.svg)](https://www.nuget.org/packages/ChatGPT)
65
[![NuGet](https://img.shields.io/nuget/dt/ChatGPT.svg)](https://www.nuget.org/packages/ChatGPT)
76

8-
A ChatGPT C# client for graphical user interface runs on MacOS, Windows, Linux, Android, iOS and Browser. Powered by [Avalonia UI](https://avaloniaui.net/) framework.
7+
用于图形用户界面的ChatGPT C#客户端在MacOS、WindowsLinuxAndroid、iOS和Browser上运行。由[Avalonia UI]提供技术支持(https://avaloniaui.net/)框架。
98

10-
To make the app work, you need to set the [OpenAI API key](https://beta.openai.com/account/api-keys) as the `OPENAI_API_KEY` environment variable or set API key directly in app settings.
9+
要使应用程序工作,您需要设置[OpenAI API密钥](https://beta.openai.com/account/api-keys)作为`OPENAI_API_KEY`环境变量或直接在应用程序设置中设置API密钥。
1110

12-
You can try client using browser version [here](https://wieslawsoltes.github.io/ChatGPT/).
11+
您可以尝试使用浏览器版本的客户端[此处](https://wieslawsoltes.github.io/ChatGPT/).
1312

14-
![image](https://user-images.githubusercontent.com/2297442/224843834-a58190df-3bdb-4722-b737-94e7adc87805.png)
13+
![图像](https://user-images.githubusercontent.com/2297442/224843834-a58190df-3bdb-4722-b737-94e7adc87805.png)
1514

16-
# Shortcuts
15+
# 快捷方式
1716

1817
### Main Window
1918

20-
- Ctrl+Shift+A - Toggle between transparent and acrylic blur window style.
21-
- Ctrl+Shift+S - Toggle between visible and hidden window state.
19+
- Ctrl+Shift+A - 在透明和丙烯酸模糊窗口样式之间切换。
20+
- Ctrl+Shift+S - 在可见和隐藏窗口状态之间切换。
2221

2322
### Message Prompt
2423

25-
- Enter - Send prompt.
26-
- Escape - Cancel edit.
27-
- F2 - Edit prompt.
28-
- Shift+Enter, Alt+Enter - Insert new line.
24+
- Enter - 发送prompt。
25+
- Escape - 取消编辑。
26+
- F2 - 编辑prompt.
27+
- Shift+Enter, Alt+Enter - 换行。
2928

3029
# Build
3130

32-
1. Install [.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
33-
2. Run `dotnet workload install ios android wasm-tools` command
34-
3. `dotnet publish -c Release` command inside project directory (mobile/desktop) or `dotnet run` for desktop to just run
31+
1.安装[.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
32+
2.运行`dotnet workload install ios android wasm tools`命令
33+
3.项目目录(移动/桌面)中的“dotnet publish-c Release”命令,或桌面仅运行的“dotnet-run”命令
3534

36-
### Dependencies
35+
### 依赖
3736

3837
- [Avalonia](https://github.com/AvaloniaUI/Avalonia)
3938
- [Markdown.Avalonia](https://github.com/whistyun/Markdown.Avalonia)
@@ -43,19 +42,19 @@ You can try client using browser version [here](https://wieslawsoltes.github.io/
4342

4443
# .NET tool
4544

46-
Install:
45+
安装:
4746
```bash
4847
dotnet tool install --global ChatGPT.CLI --version 1.0.0-preview.9
4948
```
5049

51-
Uninstall:
50+
卸载:
5251
```bash
5352
dotnet tool uninstall --global ChatGPT.CLI
5453
```
5554

5655
- [ChatGPT.CLI](https://www.nuget.org/packages/ChatGPT.CLI) - An .NET ChatGPT tool.
5756

58-
### Usage
57+
### 使用
5958

6059
```
6160
ChatGPT.CLI:
@@ -87,9 +86,9 @@ Options:
8786
-?, -h, --help Show help and usage information
8887
```
8988

90-
### Examples
89+
### 示例
9190

92-
- Using .NET tool `chat` command:
91+
- 使用 .NET tool `chat` 命令:
9392

9493
C# to VB
9594
```bash
@@ -106,12 +105,12 @@ Refactor C# code
106105
chat -d ./ -e cs -p *.cs --directions "You are C# expert. Refactor C# code to use fluent api. Write only code."
107106
```
108107

109-
Write API documentation
108+
编写API文档
110109
```bash
111110
chat -d ./ -e md -p *.cs --directions "You are a technical documentation writer. Write API documentation for C# code. If XML docs are missing write them."
112111
```
113112

114-
- Run from source
113+
- 从源码运行
115114

116115
C# to VB
117116
```bash
@@ -123,12 +122,12 @@ C# to F#
123122
dotnet run -- -d ./ -e fs -p *.cs --directions "You are C# to F# conversion expert. Convert input code from C# to F#. Write only code."
124123
```
125124

126-
Write API documentation
125+
编写API文档
127126
```bash
128127
dotnet run -- -d ./ -e md -p *.cs --directions "You are a technical documentation writer. Write API documentation for C# code. If XML docs are missing write them."
129128
```
130129

131-
### Settings file format
130+
### 配置文件
132131

133132
```json
134133
{
@@ -145,7 +144,7 @@ dotnet run -- -d ./ -e md -p *.cs --directions "You are a technical documentatio
145144

146145
# COM
147146

148-
In the build release directory `ChatGPT\ChatGptCom\bin\Release\net462\` run following command to register `ChatGptCom.dll`.
147+
在发布版本目录中 `ChatGPT\ChatGptCom\bin\Release\net462\` 运行以下命令进行注册 `ChatGptCom.dll`.
149148

150149
32-bit
151150
```
@@ -159,7 +158,7 @@ c:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe /codebase /tlb ChatGp
159158

160159
### Microsoft Work 2010
161160

162-
Add `ChatGPT\ChatGptCom\bin\Release\net462\ChatGptCom.tlb` to `References` using `Tools > References...` menu in `Microsoft Visual Basic for Applications`.
161+
添加`ChatGPT\ChatGptCom\bin\Release\net462\ChatGptCom.tlb` to `References` using `Tools > References...` menu in `Microsoft Visual Basic for Applications`.
163162

164163
```vba
165164
Option Explicit

0 commit comments

Comments
 (0)