geomind-ai 1.0.2__py3-none-any.whl → 1.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
geomind/__init__.py CHANGED
@@ -3,7 +3,7 @@ GeoMind - Geospatial AI Agent
3
3
 
4
4
  """
5
5
 
6
- __version__ = "1.0.2"
6
+ __version__ = "1.0.3"
7
7
  __author__ = "Harsh Shinde"
8
8
 
9
9
  from .agent import GeoMindAgent
geomind/agent.py CHANGED
@@ -236,22 +236,27 @@ class GeoMindAgent:
236
236
  Uses OpenRouter API for access to multiple AI models.
237
237
  """
238
238
 
239
- def __init__(self, model: Optional[str] = None):
239
+ def __init__(self, model: Optional[str] = None, api_key: Optional[str] = None):
240
240
  """
241
241
  Initialize the GeoMind agent.
242
242
 
243
243
  Args:
244
244
  model: Model name (default: xiaomi/mimo-v2-flash:free)
245
+ api_key: OpenRouter API key. If not provided, looks for OPENROUTER_API_KEY env variable.
245
246
  """
246
247
  self.provider = "openrouter"
247
- self.api_key = OPENROUTER_API_KEY
248
+ self.api_key = api_key or OPENROUTER_API_KEY
248
249
  self.model_name = model or OPENROUTER_MODEL
249
250
  self.base_url = OPENROUTER_API_URL
250
251
 
251
252
  if not self.api_key:
252
253
  raise ValueError(
253
- "OpenRouter API key required. Set OPENROUTER_API_KEY in .env file.\n"
254
- "Get your API key at: https://openrouter.ai/settings/keys"
254
+ "OpenRouter API key required.\n"
255
+ "You can provide it in three ways:\n"
256
+ "1. Pass it to the constructor: GeoMindAgent(api_key='your-key')\n"
257
+ "2. Set OPENROUTER_API_KEY environment variable\n"
258
+ "3. Create a .env file with OPENROUTER_API_KEY=your-key\n"
259
+ "\nGet your API key at: https://openrouter.ai/settings/keys"
255
260
  )
256
261
 
257
262
  print(f"🚀 GeoMind Agent initialized with {self.model_name} (OpenRouter)")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geomind-ai
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: AI agent for geospatial analysis with Sentinel-2 satellite imagery
5
5
  Author: Harsh Shinde
6
6
  License-Expression: MIT
@@ -1,14 +1,14 @@
1
- geomind/__init__.py,sha256=mma_vqNjiOpc0WOvclIdFqULWUnc7P8cDfAfqkPOsd4,151
2
- geomind/agent.py,sha256=iE-mwRLuA5sn4YtCQYU30GxcwsJoDhbhxdUrYsUJU0c,15010
1
+ geomind/__init__.py,sha256=n5p83zzIUSJlgGvqvyilFeU5u84if0DoTwsdj4gcLNE,151
2
+ geomind/agent.py,sha256=t5xQ5oldG5BrZfuk67RSKuDNl1TmIxwvPqbkvJqO_hE,15398
3
3
  geomind/cli.py,sha256=tmMkvO9scyvzpRtiKbcb1jtWn3fSgFoywQmuusmjDuI,3283
4
4
  geomind/config.py,sha256=hv3DNM7QbCuOSWuPmXeiVxEbGxH7fRLxOc8jexd7rrY,2011
5
5
  geomind/tools/__init__.py,sha256=8iumGwIFHh8Bj1VJNgZtmKnEBqCy6_cRkzYENDUH7x4,720
6
6
  geomind/tools/geocoding.py,sha256=hiLpzHpkJP6IgWAUtZMnHL6qpkWcYWVLpGe0yfYxXv8,3007
7
7
  geomind/tools/processing.py,sha256=vMp8PMb8h8QiBRBFRvI_TGRqEDBTDQvSV0zvC1Ji5bc,9976
8
8
  geomind/tools/stac_search.py,sha256=V6230l4aHjedPWXu-3Cjmfc6diSFh5zsycewUko0W8k,6452
9
- geomind_ai-1.0.2.dist-info/licenses/LICENSE,sha256=aveu0ERm7I3NnIu8rtpKdvd0eyRpmktXKU0PBABtSN0,1069
10
- geomind_ai-1.0.2.dist-info/METADATA,sha256=tF0kr6M6J_Vo1_RiU3sAqseL_76xU2rvJUT52yej8Mw,2233
11
- geomind_ai-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- geomind_ai-1.0.2.dist-info/entry_points.txt,sha256=2nPR3faYKl0-1epccvzMJ2xdi-Q1Vt7aOSvA84oIWnw,45
13
- geomind_ai-1.0.2.dist-info/top_level.txt,sha256=rjKWNSNRhq4R9xJoZGsG-eAaH7BmTVNvfrrbcaJMIIs,8
14
- geomind_ai-1.0.2.dist-info/RECORD,,
9
+ geomind_ai-1.0.3.dist-info/licenses/LICENSE,sha256=aveu0ERm7I3NnIu8rtpKdvd0eyRpmktXKU0PBABtSN0,1069
10
+ geomind_ai-1.0.3.dist-info/METADATA,sha256=y6efOTHaisR2kWz4J4BpQLc6rLV7iMyTvKkuK2yuYM8,2233
11
+ geomind_ai-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ geomind_ai-1.0.3.dist-info/entry_points.txt,sha256=2nPR3faYKl0-1epccvzMJ2xdi-Q1Vt7aOSvA84oIWnw,45
13
+ geomind_ai-1.0.3.dist-info/top_level.txt,sha256=rjKWNSNRhq4R9xJoZGsG-eAaH7BmTVNvfrrbcaJMIIs,8
14
+ geomind_ai-1.0.3.dist-info/RECORD,,