@docyrus/ui-pro-ai-assistant 0.2.3 → 0.2.4

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.
@@ -27,7 +27,6 @@ interface UseAssistantApiReturn {
27
27
  name: string;
28
28
  description?: string;
29
29
  instructions?: string;
30
- userId?: string;
31
30
  }) => Promise<Project | null>;
32
31
  updateProject: (projectId: string, params: {
33
32
  name?: string;
package/dist/index.js CHANGED
@@ -2700,7 +2700,7 @@ function useAssistantApi({
2700
2700
  instructions: params.instructions,
2701
2701
  tenant_ai_agent_id: tenantAiAgentId,
2702
2702
  tenant_ai_agent_deployment_id: deploymentId,
2703
- created_by: params.userId
2703
+ created_by: configUser.id
2704
2704
  });
2705
2705
  if (response.success && response.data) {
2706
2706
  toast.success(t("toast.project_created_success"));
@@ -2716,6 +2716,7 @@ function useAssistantApi({
2716
2716
  apiClient,
2717
2717
  tenantAiAgentId,
2718
2718
  deploymentId,
2719
+ configUser.id,
2719
2720
  t
2720
2721
  ]);
2721
2722
  const updateProject2 = useCallback(async (projectId, params) => {