typia icon indicating copy to clipboard operation
typia copied to clipboard

feat: modify typia.llm.application non-object error message

Open luke0408 opened this issue 10 months ago • 2 comments

Change Error Message by #1555

eg. before

{
  "code": "typia.llm.application",
  "message": "unsupported type detected\n\n- PickNotionServicegetDatabaseInfo.getDatabaseInfo: unknown\n  - LLM application's function (\"getDatabaseInfo\")'s parameter must be an object type.",
  "name": "Error"
}

eg. after

{
  "code": "typia.llm.application",
  "message": "unsupported type detected\n\n- PickNotionServicegetDatabaseInfo.getDatabaseInfo: unknown\n  - LLM application's function (\"getDatabaseInfo\")'s parameter must be an object type. Union types (e.g., string | object) are not supported.",
  "name": "Error"
}

luke0408 avatar Apr 16 '25 07:04 luke0408

Open in StackBlitz

npm i https://pkg.pr.new/typia@1572

commit: b4d5907

pkg-pr-new[bot] avatar Apr 16 '25 08:04 pkg-pr-new[bot]

Should I also add a test case for the error being thrown?

luke0408 avatar Apr 16 '25 08:04 luke0408