[8.1.0][adas] 新增VLLM 接口,新增VLLM图像接口,VLLM数据与VLLM图像创建同一个新线程
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user