Skip to content

Commit e141f51

Browse files
fix(docs): use run_type instead of runType in TS example (#799)
## 🐛 Fix typo in documentation: `runType` → `run_type` ### What’s changed - Updated the official documentation example to use `run_type` instead of `runType`, aligning it with the actual interface. ### Why - The `RunTreeConfig` / `RunTree` interface only permits the `run_type` property, so the discrepancy between the docs and the code causes type errors. ### Notes - This is a documentation-only change; no additional build or code verification is required. Co-authored-by: Sunny <[email protected]>
1 parent 4212e0c commit e141f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/observability/how_to_guides/log_traces_to_project.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const traceableCallOpenAI = traceable(async (messages: {role: string, content: s
123123
await traceableCallOpenAI(messages, "gpt-4o-mini");\n
124124
// Create and use a RunTree object
125125
const rt = new RunTree({
126-
runType: "llm",
126+
run_type: "llm",
127127
name: "OpenAI Call RunTree",
128128
inputs: { messages },
129129
// highlight-next-line

0 commit comments

Comments
 (0)