Skip to content

Commit c1c12e6

Browse files
committed
Delete keyword Chat-GPT
1 parent 079196d commit c1c12e6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dim.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ await new Command()
135135
new Command()
136136
.option(
137137
"-t, --target <target:string>",
138-
"Specify the target data name or file path to send to ChatGPT.",
138+
"Specify the target data name or file path to send to GPT-3 API.",
139139
)
140140
.option(
141141
"-o, --output <output:string>",
142142
"Specify to output file path of generated post-process.",
143143
)
144144
.arguments("<prompt:string>")
145145
.description(
146-
"Auto-generate code about target data using ChatGPT. \nFor example, conversion processing, visualization processing, etc.",
146+
"Auto-generate code about target data using GPT-3 API. \nFor example, conversion processing, visualization processing, etc.",
147147
)
148148
.action(new GenerateAction().execute),
149149
)

libs/actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DimFileAccessor, DimLockFileAccessor } from "./accessor.ts";
44
import { CkanApiClient } from "./ckan_api_client.ts";
55
import { createDataFilesDir, initDimFile, initDimLockFile } from "./action_helper/initializer.ts";
66
import { installFromDimFile, installFromURL, interactiveInstall, parseHeader } from "./action_helper/installer.ts";
7-
import { ChatGPTClient } from "./chatgpt_client.ts";
7+
import { OpenAIClient } from "./openai_client.ts";
88
import { ConsoleAnimation } from "./console_animation.ts";
99

1010
export class InitAction {
@@ -376,7 +376,7 @@ export class GenerateAction {
376376
const dataNameList = dimLockFileAccessor.getContents().map((c) => c.name);
377377
if (!target) {
378378
target = await Input.prompt({
379-
message: "Enter the target data name or file path to send to ChatGPT.",
379+
message: "Enter the target data name or file path to send to GPT-3 API.",
380380
hint: `${dataNameList.join(", ").slice(0, 50)}... or target file path])`,
381381
suggestions: dataNameList,
382382
validate: (text) => {
@@ -403,7 +403,7 @@ export class GenerateAction {
403403
`Generate a code ...`,
404404
);
405405
consoleAnimation.start(100);
406-
const response = await new ChatGPTClient().request(`${targetData}\n${prompt}`);
406+
const response = await new OpenAIClient().request(`${targetData}\n${prompt}`);
407407
if (!response) {
408408
return;
409409
}

libs/chatgpt_client.ts renamed to libs/openai_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Colors, ky } from "../deps.ts";
22
import { OPENAPI_COMPLETIONS_ENDPOINT } from "./consts.ts";
33
import { OpenAICompletionsResponse } from "./types.ts";
44

5-
export class ChatGPTClient {
5+
export class OpenAIClient {
66
private apiKey;
77

88
constructor() {

tests/libs/actions.generate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ describe("GenerateAction", () => {
199199
);
200200
assertEquals(
201201
targetInputPromptMessage,
202-
"Enter the target data name or file path to send to ChatGPT.",
202+
"Enter the target data name or file path to send to GPT-3 API.",
203203
);
204204
assert(targetInputPromptValidate("test"));
205205
assertFalse(targetInputPromptValidate(""));

0 commit comments

Comments
 (0)