spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

chatModel cannot be null

Open SamSamSamChen opened this issue 7 months ago • 8 comments
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..

SamSamSamChen avatar Apr 19 '25 14:04 SamSamSamChen