You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
-[ChatGPT.CLI](https://www.nuget.org/packages/ChatGPT.CLI) - An .NET ChatGPT tool.
57
56
58
-
### Usage
57
+
### 使用
59
58
60
59
```
61
60
ChatGPT.CLI:
@@ -87,9 +86,9 @@ Options:
87
86
-?, -h, --help Show help and usage information
88
87
```
89
88
90
-
### Examples
89
+
### 示例
91
90
92
-
-Using .NET tool `chat`command:
91
+
-使用 .NET tool `chat`命令:
93
92
94
93
C# to VB
95
94
```bash
@@ -106,12 +105,12 @@ Refactor C# code
106
105
chat -d ./ -e cs -p *.cs --directions "You are C# expert. Refactor C# code to use fluent api. Write only code."
107
106
```
108
107
109
-
Write API documentation
108
+
编写API文档
110
109
```bash
111
110
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."
112
111
```
113
112
114
-
-Run from source
113
+
-从源码运行
115
114
116
115
C# to VB
117
116
```bash
@@ -123,12 +122,12 @@ C# to F#
123
122
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."
124
123
```
125
124
126
-
Write API documentation
125
+
编写API文档
127
126
```bash
128
127
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."
129
128
```
130
129
131
-
### Settings file format
130
+
### 配置文件
132
131
133
132
```json
134
133
{
@@ -145,7 +144,7 @@ dotnet run -- -d ./ -e md -p *.cs --directions "You are a technical documentatio
145
144
146
145
# COM
147
146
148
-
In the build release directory `ChatGPT\ChatGptCom\bin\Release\net462\`run following command to register`ChatGptCom.dll`.
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`.
0 commit comments