mirror of https://github.com/langgenius/dify.git
fix(telemetry): remove app_id parameter from standalone prompt generation endpoints
Remove app_id=None from three prompt generation endpoints that lack proper app context. These standalone utilities only have tenant_id available, so we don't pass app_id at all rather than passing incomplete information. Affected endpoints: - /rule-generate (RuleGenerateApi) - /code-generate (RuleCodeGenerateApi) - /structured-output-generate (RuleStructuredOutputGenerateApi)
This commit is contained in:
parent
c56e5a5b71
commit
3f75a420cd
|
|
@ -88,7 +88,6 @@ class RuleGenerateApi(Resource):
|
|||
model_config=args.model_config_data,
|
||||
no_variable=args.no_variable,
|
||||
user_id=account.id,
|
||||
app_id=None,
|
||||
)
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
|
|
@ -124,7 +123,6 @@ class RuleCodeGenerateApi(Resource):
|
|||
model_config=args.model_config_data,
|
||||
code_language=args.code_language,
|
||||
user_id=account.id,
|
||||
app_id=None,
|
||||
)
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
|
|
@ -159,7 +157,6 @@ class RuleStructuredOutputGenerateApi(Resource):
|
|||
instruction=args.instruction,
|
||||
model_config=args.model_config_data,
|
||||
user_id=account.id,
|
||||
app_id=None,
|
||||
)
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
|
|
|
|||
Loading…
Reference in New Issue