lmnr 0.1.0__py3-none-any.whl → 0.1.1__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.

Potentially problematic release.


This version of lmnr might be problematic. Click here for more details.

lmnr/endpoint.py CHANGED
@@ -2,9 +2,10 @@ import json
2
2
  from pydantic.alias_generators import to_snake
3
3
  import requests
4
4
  from .model import EndpointRunError, EndpointRunResponse, NodeInput, EndpointRunRequest
5
+ from typing import Optional
5
6
 
6
7
  class Laminar:
7
- project_api_key: str | None = None
8
+ project_api_key: Optional[str] = None
8
9
  def __init__(self, project_api_key: str):
9
10
  self.project_api_key = project_api_key
10
11
  self.url = 'https://api.lmnr.ai/v2/endpoint/run'
lmnr/model.py CHANGED
@@ -1,12 +1,13 @@
1
1
 
2
2
  import requests
3
3
  import pydantic
4
+ from typing import Union
4
5
 
5
6
  class ChatMessage(pydantic.BaseModel):
6
7
  role: str
7
8
  content: str
8
9
 
9
- type NodeInput = str | list[ChatMessage]
10
+ NodeInput = Union[str, list[ChatMessage]] # TypeAlias
10
11
 
11
12
  class EndpointRunRequest(pydantic.BaseModel):
12
13
  inputs: dict[str, NodeInput]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lmnr
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python SDK for Laminar AI
5
5
  Author: lmnr.ai
6
6
  Requires-Python: >=3.9,<4.0
@@ -0,0 +1,7 @@
1
+ lmnr/__init__.py,sha256=tRL8mi54bdyEloW-Z8gSUcAtZfHDr93KtJ2qRhaV3jY,29
2
+ lmnr/endpoint.py,sha256=8vObfLXY2ZZcFBHAji35OVYK_z7ehTmBp2tmQ5w--qw,1587
3
+ lmnr/model.py,sha256=Qt2PQvL4AM2K4RXoqMM3HF6X_d_GSD6Dtsn2zUGWAgs,1125
4
+ lmnr-0.1.1.dist-info/LICENSE,sha256=NIpts0Z2q1CItuBiZjY9t9g0fpXUGbkH4jFmsViVcqY,1061
5
+ lmnr-0.1.1.dist-info/METADATA,sha256=YvQFqMwDZMcFYPl6sZsEWopaWTOfNM573bbXEem0PoM,1009
6
+ lmnr-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
+ lmnr-0.1.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- lmnr/__init__.py,sha256=tRL8mi54bdyEloW-Z8gSUcAtZfHDr93KtJ2qRhaV3jY,29
2
- lmnr/endpoint.py,sha256=sxzOArgQjeSIkQBVyD_GeG6xcDDEu5aoSCqkORGk6Fk,1556
3
- lmnr/model.py,sha256=63bPw2tuIIvR-PYKE_ibu26ekvHUUlowBi82efCu1Qg,1087
4
- lmnr-0.1.0.dist-info/LICENSE,sha256=NIpts0Z2q1CItuBiZjY9t9g0fpXUGbkH4jFmsViVcqY,1061
5
- lmnr-0.1.0.dist-info/METADATA,sha256=rl-u-qUeFd5gmD6tY6lshkgGgohF5B0cuwx8-tT5_PA,1009
6
- lmnr-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
- lmnr-0.1.0.dist-info/RECORD,,
File without changes
File without changes