Use normalized model references in the real check
This commit is contained in:
@@ -147,7 +147,7 @@ Do not inspect files. Do not diagnose failures. Do not change configuration. Do
|
||||
loop {
|
||||
let conversations = (api $base conversations | get conversations)
|
||||
let matches = ($conversations | where {|c|
|
||||
($c.agent?.model? | default '') == $agent.model
|
||||
($c.agent?.model?.provider? | default '') + '/' + ($c.agent?.model?.modelId? | default '') == $agent.model
|
||||
})
|
||||
if not ($matches | is-empty) { $id = ($matches | first | get id); break }
|
||||
require ((date now) < $deadline) $'No conversation for ($agent.model)'
|
||||
|
||||
Reference in New Issue
Block a user