()
| 74 | } |
| 75 | |
| 76 | func (r resolvedModelRoute) directProviderKeys() chatprovider.ProviderAPIKeys { |
| 77 | if r.kind != modelRouteKindDirect { |
| 78 | return chatprovider.ProviderAPIKeys{} |
| 79 | } |
| 80 | return r.direct.Keys |
| 81 | } |
| 82 | |
| 83 | func (p *Server) enabledAIProviderByID(ctx context.Context, providerID uuid.UUID) (database.AIProvider, error) { |
| 84 | provider, err := p.db.GetAIProviderByID(ctx, providerID) |
no outgoing calls
no test coverage detected