prompty 0.1.13__py2.py3-none-any.whl → 0.1.14__py2.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.
prompty/__init__.py CHANGED
@@ -344,7 +344,7 @@ def execute(
344
344
  parameters: Dict[str, any] = {},
345
345
  inputs: Dict[str, any] = {},
346
346
  raw: bool = False,
347
- connection: str = "default",
347
+ config_name: str = "default",
348
348
  ):
349
349
  """Execute a prompty.
350
350
 
@@ -380,7 +380,7 @@ def execute(
380
380
  # get caller's path (take into account trace frame)
381
381
  caller = Path(traceback.extract_stack()[-3].filename)
382
382
  path = Path(caller.parent / path).resolve().absolute()
383
- prompt = load(path, connection)
383
+ prompt = load(path, config_name)
384
384
 
385
385
  # prepare content
386
386
  content = prepare(prompt, inputs)
@@ -46,6 +46,7 @@ class ServerlessExecutor(Invoker):
46
46
  response = ChatCompletionsClient(
47
47
  endpoint=self.endpoint,
48
48
  credential=AzureKeyCredential(self.key),
49
+ user_agent=f"prompty/{VERSION}"
49
50
  ).complete(
50
51
  model=self.model,
51
52
  messages=data if isinstance(data, list) else [data],
@@ -61,6 +62,7 @@ class ServerlessExecutor(Invoker):
61
62
  response = EmbeddingsClient(
62
63
  endpoint=self.endpoint,
63
64
  credential=AzureKeyCredential(self.key),
65
+ user_agent=f"prompty/{VERSION}",
64
66
  ).complete(
65
67
  model=self.model,
66
68
  input=data if isinstance(data, list) else [data],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prompty
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: Prompty is a new asset class and format for LLM prompts that aims to provide observability, understandability, and portability for developers. It includes spec, tooling, and a runtime. This Prompty runtime supports Python
5
5
  Author-Email: Seth Juarez <seth.juarez@microsoft.com>
6
6
  Requires-Dist: pyyaml>=6.0.1
@@ -1,7 +1,7 @@
1
- prompty-0.1.13.dist-info/METADATA,sha256=QTF628f7AXmm8K6MvnafJJGJk6ye-FuYaf6m8-d8WWk,8951
2
- prompty-0.1.13.dist-info/WHEEL,sha256=CuZGaXTwoRLAOVv0AcE3bCTxO5ejVuBEJkUBe9C-kvk,94
3
- prompty-0.1.13.dist-info/licenses/LICENSE,sha256=KWSC4z9cfML_t0xThoQYjzTdcZQj86Y_mhXdatzU-KM,1052
4
- prompty/__init__.py,sha256=5t_hxoRVxsbc7gfMyH9EVO2j259dM6uac3GmspQ-MjE,11146
1
+ prompty-0.1.14.dist-info/METADATA,sha256=lbEMlGMerWd1XGwjZwG-DDy2wQQ9rzUowD0JNxaqTZE,8951
2
+ prompty-0.1.14.dist-info/WHEEL,sha256=CuZGaXTwoRLAOVv0AcE3bCTxO5ejVuBEJkUBe9C-kvk,94
3
+ prompty-0.1.14.dist-info/licenses/LICENSE,sha256=KWSC4z9cfML_t0xThoQYjzTdcZQj86Y_mhXdatzU-KM,1052
4
+ prompty/__init__.py,sha256=mg_lSGVEe4etHHRhxoVLa6wgQDipFECd1rVFPyXzkUA,11148
5
5
  prompty/azure/__init__.py,sha256=6duJ79CDPG3w-cLk3vt8YfELDMOtSsnI2ClNLMFP_Og,100
6
6
  prompty/azure/executor.py,sha256=x2ng2EbYUxbingjy8w27TFGWezs4QC0LHh_S0F0-E1U,3082
7
7
  prompty/azure/processor.py,sha256=e9CcKG665zvCLPeJfS91FM6c_W_6YY0mVENxinCo19A,2253
@@ -13,7 +13,7 @@ prompty/openai/processor.py,sha256=PacKjMmGO-fd5KhOs98JyjsIf0Kl_J2SX5VroA8lVbI,2
13
13
  prompty/parsers.py,sha256=4mmIn4SVNs8B0R1BufanqUJk8v4r0OEEo8yx6UOxQpA,4670
14
14
  prompty/renderers.py,sha256=RSHFQFx7AtKLUfsMLCXR0a56Mb7DL1NJNgjUqgg3IqU,776
15
15
  prompty/serverless/__init__.py,sha256=KgsiNr-IhPiIuZoChvDf6xbbvFF467MCUKspJHo56yc,98
16
- prompty/serverless/executor.py,sha256=2XVzFX9SMX33sQTW-AZObiZ5NtVl3xVahb79ejMrlz8,2684
16
+ prompty/serverless/executor.py,sha256=fYCMV01iLBLpH2SQ9nxmrvY9ijAGpZezwkobZwUjSVQ,2781
17
17
  prompty/serverless/processor.py,sha256=pft1XGbPzo0MzQMbAt1VxsLsvRrjQO3B8MXEE2PfSA0,1982
18
18
  prompty/tracer.py,sha256=r-HC__xLtFPb2pr-xGUuhdlAaMA_PmsBB_NG79jKRO4,8810
19
- prompty-0.1.13.dist-info/RECORD,,
19
+ prompty-0.1.14.dist-info/RECORD,,