(item: Item)
| 190 | } |
| 191 | |
| 192 | function usable(item: Item): item is SelectableItem { |
| 193 | return ( |
| 194 | item.policy?.state !== "disabled" && |
| 195 | item.capabilities.limits?.max_output_tokens !== undefined && |
| 196 | item.capabilities.limits.max_prompt_tokens !== undefined && |
| 197 | item.capabilities.supports.tool_calls !== undefined |
| 198 | ) |
| 199 | } |
| 200 | |
| 201 | export async function get( |
| 202 | baseURL: string, |