You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`configureLangfuse`: (optional) Bind Langfuse API credentials and URL
35
35
-`configurePrompts`: (optional) Bind local prompt defaults
36
-
-`configurePromptKeys`: (optional) Map logical prompt names to Langfuse keys/labels
36
+
-`configurePromptKeys`: (optional) Map logical prompt names to Langfuse keys/labels. When a label is configured here, it will be used automatically when fetching prompts unless explicitly overridden.
**Note on Labels**: When you configure a `Label` in `PromptKeys`, it will be automatically used when fetching that prompt. For example:
66
+
- If `ChatTitle` is configured with `"Label": "staging"`, calling `GetPromptAsync("ChatTitle")` will fetch the "staging" label from Langfuse
67
+
- You can still override this by explicitly passing a label: `GetPromptAsync("ChatTitle", label: "production")` will use the "production" label instead
68
+
- If no label is configured and none is provided, Langfuse will use its default behavior (typically "production")
0 commit comments