@chat-lab/ui 0.1.0-beta.1 → 0.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -89303,6 +89303,14 @@ const getAdkConfig = (options) => {
89303
89303
  beforeRequest: async (params) => {
89304
89304
  const requestOptions = params.requestOptions;
89305
89305
  const hasInitSession = params.thread.metadata["sessionInited"] || false;
89306
+ if (!options.url || !options.token) {
89307
+ toast({
89308
+ title: "配置错误",
89309
+ description: "请配置ADK配置",
89310
+ variant: "destructive",
89311
+ });
89312
+ return false;
89313
+ }
89306
89314
  if (!hasInitSession) {
89307
89315
  let res;
89308
89316
  try {