Skip to content
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

Feat: Support variant and continue #22

Open
Seidko opened this issue Dec 8, 2022 · 11 comments
Open

Feat: Support variant and continue #22

Seidko opened this issue Dec 8, 2022 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@Seidko
Copy link
Member

Seidko commented Dec 8, 2022

I found that content_type has three types when I was analyzing the API: next variant and continue. Chatgpt plugin currently implements next type, and the variant type allows the AI to change the way it says, while the continue type completes a truncated sentence. Now I want to implement these two types in chatgpt plugin.

image

@Seidko Seidko self-assigned this Dec 8, 2022
@MaikoTan MaikoTan added enhancement New feature or request labels Dec 8, 2022
@MaikoTan
Copy link
Member

MaikoTan commented Dec 8, 2022

Looks like #18 can be solved with continue as well.

@Seidko
Copy link
Member Author

Seidko commented Dec 8, 2022

Which means. I can implement continue by merging the parts of the conversation?

@MaikoTan
Copy link
Member

MaikoTan commented Dec 8, 2022

No, I mean you could implement continue then the problem in #18 would be solved, so we don't need to do the merge-whatever things.

@Seidko
Copy link
Member Author

Seidko commented Dec 8, 2022

Got it. I will start working on it now.

@Seidko
Copy link
Member Author

Seidko commented Dec 9, 2022

Because I need to implement continue and variant, I need to save the previous message. Do you have any different ideas?

@MaikoTan
Copy link
Member

MaikoTan commented Dec 9, 2022

There was a parent message id that I have processed already. Is there any problem with it?

message: string

parent_message_id: messageId,

messageId = message?.id

@Seidko
Copy link
Member Author

Seidko commented Dec 9, 2022

No, actually the conversations saved in koishi only has messageId and conversationId, so I came to ask this question.

const conversations = new Map<string, { messageId: string; conversationId: string }>()

@Seidko
Copy link
Member Author

Seidko commented Dec 9, 2022

I need to save the previous message for chatgpt in order to implement variant and continue.

@MaikoTan
Copy link
Member

MaikoTan commented Dec 9, 2022

I don't really know what is variant and continue even though you mentioned them several times. Would you mind explaining what are and how they would behave in the conversation? Merci.

@Seidko
Copy link
Member Author

Seidko commented Dec 9, 2022

Sure. The purpose of variant is to let the AI regenerate the previous sentence, which is equivalent to the Try again button in the ChatGPT web page. I haven't tested the function of continue, but according to the name, it should be to continue the truncated part.

@Seidko
Copy link
Member Author

Seidko commented Dec 9, 2022

I just successfully tested the function of continue, but I'm not sure if it is really the function of continue.

image

@Seidko Seidko linked a pull request Dec 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants