Skip to content

Easy way to log requests and responses to LLM's #883

Closed
@pax95

Description

@pax95

Was looking for ways to log request/response from call to LLM's, and found this discussion.
I think it would be great if this would be supported as a configuration property as it is in Langchain4j.

Discussed in #450

Originally posted by iAMSagar44 March 15, 2024
Has anyone managed to find a way to log the requests and responses to/from Open AI using Spring AI.
I have tried various logging settings in the application.properties but no luck.
With Langchain4J, there is a specific property for logging the requests and responses to/from the AI models, but couldn't find anything similar with Spring AI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions