lyceum-cli 1.0.18__py3-none-any.whl → 1.0.20__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.
@@ -170,11 +170,12 @@ def analyze_image(
170
170
  image_url: str = typer.Argument(..., help="URL of image to analyze"),
171
171
  prompt: str = typer.Option("What do you see in this image?", "--prompt", "-p", help="Question about the image"),
172
172
  model: str = typer.Option("gpt-4-vision", "--model", "-m", help="Vision model to use"),
173
+ raw_output: bool = typer.Option(False, "--raw", help="Return full model response instead of just content"),
173
174
  ):
174
175
  """Analyze an image with AI vision models"""
175
176
  try:
176
177
  client = config.get_client()
177
-
178
+
178
179
  # Create request payload for image analysis
179
180
  sync_request = {
180
181
  "model_id": model,
@@ -183,16 +184,17 @@ def analyze_image(
183
184
  "image_url": image_url
184
185
  },
185
186
  "max_tokens": 1000,
186
- "temperature": 0.7
187
+ "temperature": 0.7,
188
+ "raw_output": raw_output
187
189
  }
188
-
190
+
189
191
  console.print(f"[dim]👁️ Analyzing image with {model}...[/dim]")
190
-
192
+
191
193
  import httpx
192
-
194
+
193
195
  url = f"{config.base_url}/api/v2/external/sync/"
194
196
  headers = {"Authorization": f"Bearer {config.api_key}", "Content-Type": "application/json"}
195
-
197
+
196
198
  with httpx.Client() as http_client:
197
199
  response = http_client.post(
198
200
  url,
@@ -200,13 +202,17 @@ def analyze_image(
200
202
  headers=headers,
201
203
  timeout=60.0
202
204
  )
203
-
205
+
204
206
  if response.status_code == 200:
205
207
  result = response.json()
206
-
207
- console.print(f"[green]✅ Image Analysis:[/green]")
208
- console.print(f"[cyan]{result['output']}[/cyan]")
209
-
208
+
209
+ if raw_output:
210
+ console.print(f"[green]✅ Raw Response:[/green]")
211
+ console.print(json.dumps(result.get('raw_response', result['output']), indent=2))
212
+ else:
213
+ console.print(f"[green]✅ Image Analysis:[/green]")
214
+ console.print(f"[cyan]{result['output']}[/cyan]")
215
+
210
216
  elif response.status_code == 503:
211
217
  console.print(f"[red]❌ Vision model {model} is not running.[/red]")
212
218
  raise typer.Exit(1)
@@ -214,7 +220,7 @@ def analyze_image(
214
220
  console.print(f"[red]❌ Error: HTTP {response.status_code}[/red]")
215
221
  console.print(f"[red]{response.text}[/red]")
216
222
  raise typer.Exit(1)
217
-
223
+
218
224
  except Exception as e:
219
225
  console.print(f"[red]❌ Error: {e}[/red]")
220
226
  raise typer.Exit(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lyceum-cli
3
- Version: 1.0.18
3
+ Version: 1.0.20
4
4
  Summary: Command-line interface for Lyceum Cloud Execution API
5
5
  Home-page: https://lyceum.technology
6
6
  Author: Lyceum Team
@@ -8,7 +8,7 @@ lyceum/external/compute/execution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
8
8
  lyceum/external/compute/execution/python.py,sha256=IiQpudxLAD4lMaQsvON6MGPNGYtEW9Zoip9dSv8KI0g,3745
9
9
  lyceum/external/compute/inference/__init__.py,sha256=4YLoUKDEzitexynJv_Q5O0w1lty8CJ6uyRxuc1LiaBw,89
10
10
  lyceum/external/compute/inference/batch.py,sha256=OHwJndqvsQx0K0-3to8Tc9HB2xA6iq1MNvXvpMxi5Oc,11775
11
- lyceum/external/compute/inference/chat.py,sha256=IZri9YrgMWHHQkJMj_ausdjBgNmqBAluAZcmRwJ-sIM,8756
11
+ lyceum/external/compute/inference/chat.py,sha256=2axUQIBDEypd-maF3YBcRixvSUsSZHy11dwUZEfU4a4,9040
12
12
  lyceum/external/compute/inference/models.py,sha256=VVHMUhTPVhLKiuvC9Q1zvBD-lM4KDJPUqTmFO7kHpUA,10319
13
13
  lyceum/external/general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  lyceum/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -18,8 +18,8 @@ lyceum/shared/streaming.py,sha256=-_MLgrACwe1oU5n3UG4kzg9TcUQXc3cLNV6WyplEc_k,60
18
18
  lyceum_cloud_execution_api_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  lyceum_cloud_execution_api_client/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  lyceum_cloud_execution_api_client/models/__init__.py,sha256=AMlb9R9O9aNC9hvKz_8TFpEfOolYC3VtFS5JX17kYks,4888
21
- lyceum_cli-1.0.18.dist-info/METADATA,sha256=Xr3_q1LQTamNgwcEidQ6QHCdnQcdxK-AY-wyVTwp2f4,1482
22
- lyceum_cli-1.0.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- lyceum_cli-1.0.18.dist-info/entry_points.txt,sha256=Oq-9wDkxVd6MHgNiUTYwXI9SGhvR3VkD7Mvk0xhiUZo,43
24
- lyceum_cli-1.0.18.dist-info/top_level.txt,sha256=CR7FEMloAXgLsHUR6ti3mWNcpgje27HRHSfq8doIils,41
25
- lyceum_cli-1.0.18.dist-info/RECORD,,
21
+ lyceum_cli-1.0.20.dist-info/METADATA,sha256=aS1Z3vDWaPe76dU9NCDbxDnXHWkWveZnE3IE-ULXiLY,1482
22
+ lyceum_cli-1.0.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ lyceum_cli-1.0.20.dist-info/entry_points.txt,sha256=Oq-9wDkxVd6MHgNiUTYwXI9SGhvR3VkD7Mvk0xhiUZo,43
24
+ lyceum_cli-1.0.20.dist-info/top_level.txt,sha256=CR7FEMloAXgLsHUR6ti3mWNcpgje27HRHSfq8doIils,41
25
+ lyceum_cli-1.0.20.dist-info/RECORD,,