package shared

import "core:os"

Config :: struct {
	deepseek_api_key: string,
	deepseek_base_url: string,
	fal_api_key: string,
	project_root: string,
}

load_config :: proc() -> Config {
	cfg := Config{
		deepseek_api_key = os.get_env("DEEPSEEK_API_KEY", context.temp_allocator),
		deepseek_base_url = os.get_env("DEEPSEEK_BASE_URL", context.temp_allocator),
		fal_api_key = os.get_env("FAL_API_KEY", context.temp_allocator),
		project_root = ".",
	}

	if len(cfg.deepseek_base_url) == 0 {
		cfg.deepseek_base_url = "https://api.deepseek.com"
	}

	return cfg
}

load_config_stub :: proc() -> Config {
	return load_config()
}
