fix: emdedding model no chat button
This commit is contained in:
@@ -105,7 +105,7 @@ const Models: React.FC<ModelsProps> = ({
|
|||||||
const setActionList = useCallback((record: ListItem) => {
|
const setActionList = useCallback((record: ListItem) => {
|
||||||
return _.filter(ActionList, (action: any) => {
|
return _.filter(ActionList, (action: any) => {
|
||||||
if (action.key === 'chat') {
|
if (action.key === 'chat') {
|
||||||
return record.ready_replicas > 0;
|
return record.ready_replicas > 0 && !record.embedding_only;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user