Same order assistant in both frameworks against a local fake OpenAI server: starter bean collision, wire differences, tool failure and loop bounds, observability meters, MCP-first tools, and a compile check of the 2025 article's snippets and Maven coordinates. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G8ikz8xdWuTP5yun8DZ1hk
57 lines
2.9 KiB
Plaintext
57 lines
2.9 KiB
Plaintext
# The original article's code, compiled against Spring AI 2.0.1 and LangChain4j 1.22.0 (one file per API line)
|
|
|
|
OldCallAroundAdvisor: DOES NOT COMPILE
|
|
OldCallAroundAdvisor.java:1: error: cannot find symbol
|
|
symbol: class AdvisedRequest
|
|
location: package org.springframework.ai.chat.client.advisor.api
|
|
OldCallAroundAdvisor.java:2: error: cannot find symbol
|
|
symbol: class AdvisedResponse
|
|
location: package org.springframework.ai.chat.client.advisor.api
|
|
OldChatService: compiles
|
|
OldDocumentGetContent: DOES NOT COMPILE
|
|
OldDocumentGetContent.java:6: error: cannot find symbol
|
|
symbol: method getContent()
|
|
location: variable d of type Document
|
|
OldLangChain4jBuilder: DOES NOT COMPILE
|
|
OldLangChain4jBuilder.java:9: error: cannot find symbol
|
|
symbol: method chatLanguageModel(OpenAiChatModel)
|
|
location: class AiServices<Agent>
|
|
OldMessageGetContent: DOES NOT COMPILE
|
|
OldMessageGetContent.java:6: error: cannot find symbol
|
|
symbol: method getContent()
|
|
location: variable m of type Message
|
|
OldMeterRegistryCustomizer: DOES NOT COMPILE
|
|
OldMeterRegistryCustomizer.java:1: error: package org.springframework.boot.actuate.autoconfigure.metrics does not exist
|
|
OldMeterRegistryCustomizer.java:5: error: cannot find symbol
|
|
symbol: class MeterRegistryCustomizer
|
|
location: class OldMeterRegistryCustomizer
|
|
OldPdfConfig: compiles
|
|
OldSearchRequest: DOES NOT COMPILE
|
|
OldSearchRequest.java:6: error: cannot find symbol
|
|
symbol: method query(String)
|
|
location: class SearchRequest
|
|
OldTokenTextSplitter: DOES NOT COMPILE
|
|
OldTokenTextSplitter.java:5: error: no suitable constructor found for TokenTextSplitter(int,int,int,int,boolean)
|
|
|
|
# The original article's Maven coordinates, looked up on Maven Central
|
|
|
|
org/springframework/ai/spring-ai-openai-spring-boot-starter: latest release none, latest of any kind 1.0.0-M6
|
|
org/springframework/ai/spring-ai-pgvector-store-spring-boot-starter: latest release none, latest of any kind 1.0.0-M6
|
|
org/springframework/ai/spring-ai-starter-model-openai: latest release 2.0.1, latest of any kind 2.1.0-M1
|
|
org/springframework/ai/spring-ai-starter-vector-store-pgvector: latest release 2.0.1, latest of any kind 2.1.0-M1
|
|
dev/langchain4j/langchain4j-spring-boot-starter: latest release 0.36.2, latest of any kind 1.22.0-beta32
|
|
dev/langchain4j/langchain4j-open-ai: latest release 1.22.0, latest of any kind 1.22.0
|
|
dev/langchain4j/langchain4j-spring-boot4-starter: latest release none, latest of any kind 1.22.0-beta32
|
|
|
|
# Class names the original article used, searched in the jars this build resolves (mvn dependency:build-classpath)
|
|
|
|
TokenBudgetAdvisor: not found in any jar
|
|
RequestResponseAdvisor: not found in any jar
|
|
CallAroundAdvisor: not found in any jar
|
|
CallAdvisor: found
|
|
ToolCallingAdvisor: found
|
|
AdvisedRequest: not found in any jar
|
|
ChatClientRequest: found
|
|
EmbeddingClient: not found in any jar
|
|
EmbeddingModel: found
|