spring-ai
spring-ai copied to clipboard
Improve ChatGenerationMetadata ability to handle arbitrary data returned from the generation.
trafficstars
There are several objects that should be returned as metadata, but the current implementation was developed a long time ago and only handled the metadata that was returned from making Azure OpenAI calls. A hashmap at least should be added, but also a comparison of various model APIs should be done to look for common properties that are returned.