[8.1.0][adas] 新增VLLM 接口,新增VLLM图像接口,VLLM数据与VLLM图像创建同一个新线程

This commit is contained in:
xinfengkun
2025-06-19 11:01:29 +08:00
parent b63a24dc73
commit ac89e55d06
12 changed files with 288 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package com.mogo.eagle.core.function.call.autopilot
import com.mogo.eagle.core.function.api.autopilot.IVlmListener
import com.mogo.eagle.core.function.call.base.CallerBase
import vllm.Vlm
/**
* 视觉语言模型
*/
object CallerVlmManager : CallerBase<IVlmListener>() {
fun invokeVllm(sourceTimestamp: Double, vllm: Vlm.VLLMObject) {
M_LISTENERS.forEach {
val listener = it.value
listener.onVllm(sourceTimestamp, vllm)
}
}
fun invokeVllmImage(sourceTimestamp: Double, image: ByteArray) {
M_LISTENERS.forEach {
val listener = it.value
listener.onVllmImage(sourceTimestamp, image)
}
}
}