Skip to content

Commit

Permalink
little update of char template
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Feb 2, 2025
1 parent 4b5bfc6 commit ea48957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions default/user/chars/ZL-31/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Some code comes from [GentianAphrodite](https://github.com/steve02081504/Gentian
config: {
// 获取角色的配置数据
GetData: () => ({
AIsource: AIsource?.filename, // 返回当前使用的AI源的文件名
AIsource: AIsource?.filename || "", // 返回当前使用的AI源的文件名
}),
// 设置角色的配置数据
SetData: async (data) => {
Expand Down Expand Up @@ -178,7 +178,7 @@ export default {
config: {
// 获取角色的配置数据
GetData: () => ({
AIsource: AIsource?.filename, // 返回当前使用的AI源的文件名
AIsource: AIsource?.filename || "", // 返回当前使用的AI源的文件名
}),
// 设置角色的配置数据
SetData: async (data) => {
Expand Down
2 changes: 1 addition & 1 deletion src/public/ImportHanlders/SillyTavern/Template/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
interfaces: {
config: {
GetData: () => ({
AIsource: AIsource.filename,
AIsource: AIsource?.filename || "",
chardata,
}),
SetData: async (data) => {
Expand Down

0 comments on commit ea48957

Please sign in to comment.