In short
The developer of the BDoc format encountered issues with Gemini being unavailable in several regions due to Google's restrictions. To use the 1 million-token context window, he wrote his own proxy server in Java.
A developer working on an alternative document format called BDoc needed a neural network with a large context window. The choice fell on Google’s Gemini, which supports up to one million tokens—a critical feature for processing long documents.
The main challenge was that Google blocks requests from certain regions. This makes it impossible for users in those regions to connect directly to the Gemini API.
After analyzing the options, the author decided to write his own Java program called ai-proxy. It is a proxy server that allows neural networks to bypass geographic restrictions and interact correctly with the API.