<?php

return [
	/*
	|--------------------------------------------------------------------------
	| Anthropic API Key
	|--------------------------------------------------------------------------
	|
	| Your Anthropic API key. You can find this in your Anthropic Console
	| under "Account" > "API Keys".
	|
	*/
	
	'api_key' => env('ANTHROPIC_API_KEY'),
	
	/*
	|--------------------------------------------------------------------------
	| Base URL
	|--------------------------------------------------------------------------
	|
	| The base URL for the Anthropic API. This should not need to be changed
	| unless you are using a proxy or custom endpoint.
	|
	*/
	
	'base_url' => env('ANTHROPIC_BASE_URL', 'https://api.anthropic.com/v1'),
	
	/*
	|--------------------------------------------------------------------------
	| Default Model
	|--------------------------------------------------------------------------
	|
	| The default model to use for Anthropic API requests. You can override
	| this on a per-request basis.
	|
	*/
	
	'model' => env('ANTHROPIC_MODEL', 'claude-3-sonnet-20240229'),
	
	/*
	|--------------------------------------------------------------------------
	| Request Timeout
	|--------------------------------------------------------------------------
	|
	| The timeout in seconds for Anthropic API requests.
	|
	*/
	
	'timeout' => env('ANTHROPIC_TIMEOUT', 120), // Increased for better stability
	
	/*
	|--------------------------------------------------------------------------
	| Max Tokens Configuration
	|--------------------------------------------------------------------------
	|
	| Configure max tokens for different types of requests.
	|
	*/
	
	'max_tokens' => [
		'structure' => env('ANTHROPIC_MAX_TOKENS_STRUCTURE', 3000),
		'article'   => env('ANTHROPIC_MAX_TOKENS_ARTICLE', 8000),
		'keyword'   => env('ANTHROPIC_MAX_TOKENS_KEYWORD', 300),
	],
	
	/*
	|--------------------------------------------------------------------------
	| Job Processing Configuration
	|--------------------------------------------------------------------------
	|
	| Configure timeouts and retry settings for queue jobs.
	|
	*/
	
	'job_config' => [
		'timeout' => env('ANTHROPIC_JOB_TIMEOUT', 300), // 5 minutes
		'retries' => env('ANTHROPIC_JOB_RETRIES', 3),
		'backoff' => [10, 30, 60], // seconds between retries
	],
	
	/*
	|--------------------------------------------------------------------------
	| Content Generation Configuration  
	|--------------------------------------------------------------------------
	|
	| Configure content generation parameters for SEO tags and structure.
	|
	*/
	
	'content_config' => [
		'seo_tags_count' => env('CLAUDE_SEO_TAGS_COUNT', 8),
		'structure_sections' => env('CLAUDE_STRUCTURE_SECTIONS', '6:10'),
		'image_batch_size' => env('IMAGE_BATCH_SIZE', 5),
		'article_word_count' => env('CLAUDE_ARTICLE_WORD_COUNT', '2000:3000'),
		'auto_calculate_tokens' => env('CLAUDE_AUTO_CALCULATE_TOKENS', true),
		'token_multiplier' => env('CLAUDE_TOKEN_MULTIPLIER', 3.5),
	],
];