Comparing version 3.7.0 to 3.8.0
@@ -152,3 +152,3 @@ 'use strict'; | ||
var version = "3.7.0"; | ||
var version = "3.8.0"; | ||
@@ -377,3 +377,5 @@ class Langfuse extends langfuseCore.LangfuseCore { | ||
name: config?.generationName, | ||
startTime: new Date() | ||
startTime: new Date(), | ||
promptName: config?.langfusePrompt?.name, | ||
promptVersion: config?.langfusePrompt?.version | ||
}; | ||
@@ -386,3 +388,6 @@ let langfuseParent; | ||
...config, | ||
...observationData | ||
...observationData, | ||
promptName: config?.promptName ?? config?.langfusePrompt?.name, | ||
// Maintain backward compatibility for users who use promptName | ||
promptVersion: config?.promptVersion ?? config?.langfusePrompt?.version // Maintain backward compatibility for users who use promptVersion | ||
}; | ||
@@ -389,0 +394,0 @@ } else { |
@@ -1,2 +0,2 @@ | ||
import { LangfuseCoreOptions, LangfuseCore, LangfusePersistedProperty, LangfuseFetchOptions, LangfuseFetchResponse, LangfuseWebStateless, LangfuseTraceClient, LangfuseSpanClient, LangfuseGenerationClient, CreateLangfuseTraceBody, CreateLangfuseGenerationBody } from 'langfuse-core'; | ||
import { LangfuseCoreOptions, LangfuseCore, LangfusePersistedProperty, LangfuseFetchOptions, LangfuseFetchResponse, LangfuseWebStateless, LangfuseTraceClient, LangfuseSpanClient, LangfuseGenerationClient, LangfusePromptClient, CreateLangfuseTraceBody, CreateLangfuseGenerationBody } from 'langfuse-core'; | ||
export { LangfuseEventClient, LangfuseGenerationClient, LangfuseSpanClient, LangfuseTraceClient } from 'langfuse-core'; | ||
@@ -69,2 +69,3 @@ import OpenAI from 'openai'; | ||
generationName?: string; | ||
langfusePrompt?: LangfusePromptClient; | ||
}; | ||
@@ -71,0 +72,0 @@ type LangfuseExtension = OpenAI & Pick<ReturnType<typeof LangfuseSingleton.getInstance>, "flushAsync">; |
{ | ||
"name": "langfuse", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"engines": { | ||
@@ -35,5 +35,5 @@ "node": ">=18" | ||
"dependencies": { | ||
"langfuse-core": "^3.7.0" | ||
"langfuse-core": "^3.8.0" | ||
}, | ||
"gitHead": "47f2f2d14fe61363be5e14c2d41f5d24b125480e", | ||
"gitHead": "56ca8cef3215bcbf56873959fb598ac2575c7c02", | ||
"devDependencies": { | ||
@@ -40,0 +40,0 @@ "typedoc": "^0.25.13" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
119038
1103
Updatedlangfuse-core@^3.8.0