-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Description
配置ollama时,可能会因为配置文件里的url不通造成无法启动,而实际启用的配置是数据库表里配置的,导致应用无法启动。
由于流式ollama调用function call报错在新版1.1.0-SNAPSHOT中得到了修复,所以我的版本稍微新一点,新版本配置文件发生了变化。新版本自动配置启动时会验证是否有模型,并且有自动拉取机制,如果超时或出错会报错导致整个应用无法启动。所以最好的做法是
spring:
ai:
model:
chat: none
embedding: none
这样配置 启动时就不会自动装配,而测试下来一切正常
参考
https://docs.spring.io/spring-ai/reference/api/chat/ollama-chat.html#_auto_configuration
Metadata
Metadata
Assignees
Labels
No labels