Skip to content

Commit

Permalink
chatwaifu mobile 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Voine committed May 12, 2023
1 parent e1b992e commit 910a017
Show file tree
Hide file tree
Showing 100 changed files with 1,996 additions and 13,756 deletions.
1 change: 1 addition & 0 deletions ChatGPT/src/main/java/com/chatwaifu/chatgpt/ChatGPTData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ data class ChatGPTResponseData(
var usage: Usage? = null,
var errorMsg: String? = null,
)

@Keep
data class Usage(var prompt_tokens: Int?, val completion_tokens: Int?, val total_tokens: Int?)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ class ChatGPTNetService(val context: Context) {

private fun getResponseFromTest(msg: String, callback: (response: ChatGPTResponseData?) -> Unit) {
CoroutineScope(Dispatchers.IO).launch {
delay(1000)
delay(5000)
val response = ChatGPTResponseData().apply {
choices =
listOf(
ListBean(
message = ResponseInnerMessageBean(
role = "Yuuka",
content = "this is response for $msg"
role = "atri",
content = "萝卜子是对机器人的蔑称!萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称萝卜子是对机器人的蔑称"
), finish_reason = "", index = 0
)
)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
92 changes: 0 additions & 92 deletions Live2D/src/main/assets/Live2DModels/Hiyori/Hiyori.model3.json

This file was deleted.

16 changes: 0 additions & 16 deletions Live2D/src/main/assets/Live2DModels/Hiyori/Hiyori.pose3.json

This file was deleted.

44 changes: 0 additions & 44 deletions Live2D/src/main/assets/Live2DModels/Hiyori/Hiyori.userdata3.json

This file was deleted.

Loading

0 comments on commit 910a017

Please sign in to comment.