 PURPOSE: This phase III trial is studying the side effects and best dose of gemcitabine when given together with pemetrexed disodium to see how well it works in treating patients with unresectable or metastatic biliary tract or gallbladder cancer. 