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 +1 -1
- geomind/agent.py +9 -4
- {geomind_ai-1.0.2.dist-info → geomind_ai-1.0.3.dist-info}/METADATA +1 -1
- {geomind_ai-1.0.2.dist-info → geomind_ai-1.0.3.dist-info}/RECORD +8 -8
- {geomind_ai-1.0.2.dist-info → geomind_ai-1.0.3.dist-info}/WHEEL +0 -0
- {geomind_ai-1.0.2.dist-info → geomind_ai-1.0.3.dist-info}/entry_points.txt +0 -0
- {geomind_ai-1.0.2.dist-info → geomind_ai-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {geomind_ai-1.0.2.dist-info → geomind_ai-1.0.3.dist-info}/top_level.txt +0 -0
geomind/__init__.py
CHANGED
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
|
|
254
|
-
"
|
|
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,14 +1,14 @@
|
|
|
1
|
-
geomind/__init__.py,sha256=
|
|
2
|
-
geomind/agent.py,sha256=
|
|
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.
|
|
10
|
-
geomind_ai-1.0.
|
|
11
|
-
geomind_ai-1.0.
|
|
12
|
-
geomind_ai-1.0.
|
|
13
|
-
geomind_ai-1.0.
|
|
14
|
-
geomind_ai-1.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|