Skip to content

fix(prompt): compile None value to empty string#556

Merged
hassiebp merged 2 commits into
langfuse:hassieb/lfe-759-allow-content-as-promptvarfrom
fancyweb:fix/prompt-compil-none
Apr 10, 2024
Merged

fix(prompt): compile None value to empty string#556
hassiebp merged 2 commits into
langfuse:hassieb/lfe-759-allow-content-as-promptvarfrom
fancyweb:fix/prompt-compil-none

Conversation

@fancyweb
Copy link
Copy Markdown
Contributor

Thanks to #543 I can now get rid of my own variable interpolation system that circumvented HTML escaping issues 🥳

However, one behavior that I think we should preserve is compiling None values to "" instead of "None" (as chevron did).

@marcklingen marcklingen requested a review from hassiebp April 10, 2024 14:46
@hassiebp hassiebp enabled auto-merge (squash) April 10, 2024 14:51
@hassiebp hassiebp changed the base branch from main to hassieb/lfe-759-allow-content-as-promptvar April 10, 2024 14:54
@hassiebp hassiebp disabled auto-merge April 10, 2024 14:54
@hassiebp hassiebp merged commit 16387dd into langfuse:hassieb/lfe-759-allow-content-as-promptvar Apr 10, 2024
@hassiebp
Copy link
Copy Markdown
Contributor

Thanks @fancyweb for your contribution!

@fancyweb fancyweb deleted the fix/prompt-compil-none branch April 10, 2024 14:56
maxdeichmann added a commit that referenced this pull request Apr 10, 2024
* fix(prompt): compile None value to empty string (#556)

Co-authored-by: Hassieb Pakzad <68423100+hassiebp@users.noreply.github.com>

* fix: allows content as prompt variable name

* Update test_prompt.py

---------

Co-authored-by: Thomas Calvet <calvet.thomas@gmail.com>
Co-authored-by: Max Deichmann <m.deichmann@tum.de>
@marcklingen
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants