| 12345678910111213141516171819 |
- import Foundation
- enum AIRequestConfiguration {
- /// Fastest OpenAI model — optimized for low-latency structured output.
- static let model = "gpt-4.1-nano"
- static let requestTimeout: TimeInterval = 30
- static func titleOptimizerMaxTokens(variantCount: Int) -> Int {
- 80 + variantCount * 55
- }
- static func postGeneratorMaxTokens(for postType: RedditPostType) -> Int {
- switch postType {
- case .text: 450
- case .poll: 350
- case .image, .link, .video: 200
- }
- }
- }
|