pixie-prompts 0.1.10__tar.gz → 0.1.10.dev1__tar.gz
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.
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/PKG-INFO +1 -1
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/prompt.py +2 -2
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pyproject.toml +1 -1
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/LICENSE +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/README.md +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/__init__.py +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/file_watcher.py +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/graphql.py +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/prompt_management.py +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/server.py +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/storage.py +0 -0
- {pixie_prompts-0.1.10 → pixie_prompts-0.1.10.dev1}/pixie/prompts/utils.py +0 -0
|
@@ -49,7 +49,7 @@ key is the id() of the compiled string."""
|
|
|
49
49
|
def _find_matching_prompt(obj):
|
|
50
50
|
if isinstance(obj, str):
|
|
51
51
|
for compiled in _compiled_prompt_registry.values():
|
|
52
|
-
if compiled.value
|
|
52
|
+
if compiled.value == obj:
|
|
53
53
|
return compiled
|
|
54
54
|
return None
|
|
55
55
|
elif isinstance(obj, dict):
|
|
@@ -76,7 +76,7 @@ def get_compiled_prompt(text: str) -> CompiledPrompt | None:
|
|
|
76
76
|
if direct_match:
|
|
77
77
|
return direct_match
|
|
78
78
|
for compiled in _compiled_prompt_registry.values():
|
|
79
|
-
if compiled.value
|
|
79
|
+
if compiled.value == text:
|
|
80
80
|
return compiled
|
|
81
81
|
try:
|
|
82
82
|
obj = json.loads(text)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|