Skip to main content

Crate langfuse_openai

Crate langfuse_openai 

Source
Expand description

OpenAI integration for the Langfuse SDK.

Wraps async_openai to automatically create Langfuse observation spans for every chat completion and embedding API call. Drop-in tracing for existing async-openai usage with zero code changes beyond wrapping the client.

Re-exports§

pub use wrapper::TracedChat;
pub use wrapper::TracedEmbeddings;
pub use wrapper::TracedStream;
pub use wrapper::observe_openai;
pub use wrapper::observe_openai_embeddings;

Modules§

parser
Response parser for async-openai types.
wrapper
Traced wrappers around async-openai types that automatically create Langfuse observation spans for every API call.