Globadoo is a Python library for finding the country of a given city using OpenAI chat model.
To install Globadoo, use the following command:
pip install globadoo
Here's a basic example of how to use Globadoo:
pipx install globadoo
export OPENAI_API_KEY="your-api-key"
globadoo "New York"
This returns
{"city":"New York","country":"United States","country_code":"US"}
The main function of Globadoo is find_country(city, llm_config)
, which takes a city name and an LLMConfig model as arguments and returns the country of the city.
To run the tests for Globadoo, use the following command:
pytest tests
Contributions to Globadoo are welcome. Please submit a pull request with your changes.
Globadoo is licensed under the MIT License.
For any questions or concerns, please open an issue on the GitHub repository.