mirascope 1.25.4__py3-none-any.whl → 1.25.5__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.
@@ -126,7 +126,9 @@ def _load_media(source: str | bytes) -> bytes:
126
126
  if isinstance(source, bytes | bytearray | memoryview):
127
127
  data = source
128
128
  elif source.startswith(("http://", "https://", "data:", "file://")):
129
- with urllib.request.urlopen(source) as response:
129
+ headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Mirascope'}
130
+ req = urllib.request.Request(source, headers=headers)
131
+ with urllib.request.urlopen(req) as response:
130
132
  data = response.read()
131
133
  else:
132
134
  with open(source, "rb") as f:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mirascope
3
- Version: 1.25.4
3
+ Version: 1.25.5
4
4
  Summary: LLM abstractions that aren't obstructions
5
5
  Project-URL: Homepage, https://mirascope.com
6
6
  Project-URL: Documentation, https://mirascope.com/WELCOME
@@ -135,7 +135,7 @@ mirascope/core/base/_utils/_get_unsupported_tool_config_keys.py,sha256=fG34xCSnQ
135
135
  mirascope/core/base/_utils/_is_prompt_template.py,sha256=WfUYtvmlw-Yx5eYuechyQKo4DGVWRXNePoN3Bw70xvo,621
136
136
  mirascope/core/base/_utils/_json_mode_content.py,sha256=EMWnlmyEQV2VgX7D5lbovw1i3JKQKtpXt3TI6wP_vI4,675
137
137
  mirascope/core/base/_utils/_messages_decorator.py,sha256=dnvbhmwvzGcew8LU0Q_HlDrsIXai-4LuMeZ3Z2-z6wA,3873
138
- mirascope/core/base/_utils/_parse_content_template.py,sha256=U8VGe7RsOWfqB3P7aI1Dmm3KwiSon0wtnxlSmvcvCEA,10652
138
+ mirascope/core/base/_utils/_parse_content_template.py,sha256=8GoisGbizGBbksUpUE7IbzVJrt76Mfdu-PI9e2OPIi4,10807
139
139
  mirascope/core/base/_utils/_parse_prompt_messages.py,sha256=lGDYxvwea--gnE3LChNF9b1uxKrAKlYkVb9Ep7fM_zo,2523
140
140
  mirascope/core/base/_utils/_pil_image_to_bytes.py,sha256=qN8nYwRU1hgX1TjEpLKk5i-GBtxBQjTIp2KlMIdbBe8,387
141
141
  mirascope/core/base/_utils/_protocols.py,sha256=Ca6wOHK-yBdRQV68fmxmbnwMI3gie7DJ_Zn2CilDUG8,28493
@@ -372,7 +372,7 @@ mirascope/v0/base/ops_utils.py,sha256=1Qq-VIwgHBaYutiZsS2MUQ4OgPC3APyywI5bTiTAmA
372
372
  mirascope/v0/base/prompts.py,sha256=FM2Yz98cSnDceYogiwPrp4BALf3_F3d4fIOCGAkd-SE,1298
373
373
  mirascope/v0/base/types.py,sha256=ZfatJoX0Yl0e3jhv0D_MhiSVHLYUeJsdN3um3iE10zY,352
374
374
  mirascope/v0/base/utils.py,sha256=XREPENRQTu8gpMhHU8RC8qH_am3FfGUvY-dJ6x8i-mw,681
375
- mirascope-1.25.4.dist-info/METADATA,sha256=ys6o8sOhylsxIQZAwF6Sqx6FngeSG1qt9kBttr1mIrk,8542
376
- mirascope-1.25.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
377
- mirascope-1.25.4.dist-info/licenses/LICENSE,sha256=LAs5Q8mdawTsVdONpDGukwsoc4KEUBmmonDEL39b23Y,1072
378
- mirascope-1.25.4.dist-info/RECORD,,
375
+ mirascope-1.25.5.dist-info/METADATA,sha256=Ox4eK0hLJ396sNhB_sWGvj-5ThMiOwEv9JCmNB58OOs,8542
376
+ mirascope-1.25.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
377
+ mirascope-1.25.5.dist-info/licenses/LICENSE,sha256=LAs5Q8mdawTsVdONpDGukwsoc4KEUBmmonDEL39b23Y,1072
378
+ mirascope-1.25.5.dist-info/RECORD,,