(ctx context.Context, providerId string)
| 81 | } |
| 82 | |
| 83 | func (i *imlAIKeyService) MaxPriority(ctx context.Context, providerId string) (int, error) { |
| 84 | info, err := i.store.First(ctx, map[string]interface{}{"provider": providerId}, "sort desc") |
| 85 | if err != nil { |
| 86 | return 0, err |
| 87 | } |
| 88 | return info.Sort, nil |
| 89 | } |
| 90 | |
| 91 | func (i *imlAIKeyService) DefaultKey(ctx context.Context, providerId string) (*Key, error) { |
| 92 | info, err := i.store.First(ctx, map[string]interface{}{"provider": providerId, "default": true}) |
nothing calls this directly
no outgoing calls
no test coverage detected