alibaba / spring-ai-alibaba

An Application Framework for Java Developers
https://sca.aliyun.com/ai
Apache License 2.0
460 stars 131 forks source link

feat: add DashScopeChatModel call and stream observability #96

Closed Cirilla-zmh closed 1 week ago

Cirilla-zmh commented 2 weeks ago

Add DashScopeChatModel call and stream observability so that we can trace and generate metrics for DashScopeChatModel.

robinyeeh commented 2 weeks ago

LGTM

liugddx commented 1 week ago

Why implement it here instead of contribute to spring ai?

Cirilla-zmh commented 1 week ago

Why implement it here instead of contribute to spring ai?

Instrumentation should be integrated with the instrumented components, so I can only provide an implementation here. If you are wondering why the DashScope ChatModel is not implemented in Spring AI, perhaps other maintainers can provide more details. cc @chickenlj @robinyeeh