spring-ai
spring-ai copied to clipboard
chatModel cannot be null
trafficstars
I already config chat model in config file, but still tell me that cannot be null when use deepseek model.
application yaml:
spring: ai: openai: base-url: https://api.deepseek.com api-key: ${DEEPSEEK_API_KEY} chat: options: model: deepseek-chat
build.gradle: implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-SNAPSHOT") implementation 'org.springframework.ai:spring-ai-openai' implementation 'org.springframework.ai:spring-ai-starter-model-openai'
And actually, during the morning, this was ok.
I didn't change the code, it's confusing me..