Skip to content

Commit a6e6d47

Browse files
committed
use execute_config for chat
1 parent 3e199ac commit a6e6d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Thirdweb/Thirdweb.AI/ThirdwebNebula.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public async Task<NebulaChatResult> Chat(string message, IThirdwebWallet wallet
8383
SessionId = this.SessionId,
8484
Message = message,
8585
ContextFilter = contextFiler,
86-
Config = wallet == null ? null : new ExecuteConfig() { Mode = "client", SignerWalletAddress = await wallet.GetAddress() }
86+
ExecuteConfig = wallet == null ? null : new ExecuteConfig() { Mode = "client", SignerWalletAddress = await wallet.GetAddress() }
8787
}
8888
);
8989

@@ -107,7 +107,7 @@ public async Task<NebulaChatResult> Chat(List<string> messages, IThirdwebWallet
107107
SessionId = this.SessionId,
108108
Messages = messages.Select(prompt => new ChatMessage() { Role = "user", Content = prompt }).ToList(),
109109
ContextFilter = contextFiler,
110-
Config = wallet == null ? null : new ExecuteConfig() { Mode = "client", SignerWalletAddress = await wallet.GetAddress() }
110+
ExecuteConfig = wallet == null ? null : new ExecuteConfig() { Mode = "client", SignerWalletAddress = await wallet.GetAddress() }
111111
}
112112
);
113113

0 commit comments

Comments
 (0)