-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ArgumentProfile Prioritized. Expose ChatGTP's client. Rewrite Ch…
…atGPT argument to APS. Add unit tests. Add support for programmatic for ChatGPT.
- Loading branch information
Showing
7 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
litecommands-annotations/test/dev/rollczi/litecommands/annotations/LiteConfig.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
litecommands-chatgpt/src/dev/rollczi/litecommands/chatgpt/ChatGptArgument.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.rollczi.litecommands.chatgpt; | ||
|
||
import dev.rollczi.litecommands.argument.SimpleArgument; | ||
import dev.rollczi.litecommands.join.JoinProfile; | ||
import dev.rollczi.litecommands.reflect.type.TypeToken; | ||
|
||
public class ChatGptArgument extends SimpleArgument<String> { | ||
|
||
public ChatGptArgument(String name, String topic) { | ||
super(name, TypeToken.of(String.class), false); | ||
this.withProfile(new ChatGptArgumentProfile(topic)); | ||
this.withProfile(new JoinProfile()); | ||
} | ||
|
||
public ChatGptArgument(String name) { | ||
this(name, ""); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters