(tag)
| 76 | return 'https://api.openai.com/v1'; |
| 77 | } |
| 78 | |
| 79 | function defaultModelForService(service) { |
| 80 | if (service === 'gemini') return 'gemini-2.5-flash'; |
| 81 | if (service === 'claude') return 'claude-haiku-4-5'; |
| 82 | return 'gpt-4o-mini'; |
| 83 | } |
| 84 | |
| 85 | // Helper function to introduce a delay |
| 86 | function delay(ms) { |
| 87 | return new Promise(resolve => setTimeout(resolve, ms)); |
| 88 | } |
| 89 | |
| 90 | // Normalize a tag (lowercase, trim, remove special chars) |
| 91 | function normalizeTag(tag) { |
no outgoing calls
no test coverage detected