From 45f49ca439ec0a9c929638a87c5d28494f40dd0d Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Wed, 10 Jan 2024 13:27:07 -0500 Subject: [PATCH] infra: fix issue preview (#15836) Fixing the placeholder for the code example. GitHub collapses newlines when trying to use the text area, which is super confusing. --- .github/ISSUE_TEMPLATE/bug-report.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index d2c0e033fa..4c2954c583 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -52,34 +52,11 @@ body: def bad_code(inputs) -> int: raise NotImplementedError('For demo purpose') - chain = RunnableLambda(bad_code) chain.invoke('Hello!') ``` Include both the error and the full stack trace if reporting an exception! - - ``` - File langchain_core/runnables/base.py:2950, in RunnableLambda._invoke(self, input, run_manager, config, **kwargs) - 2948 output = chunk - 2949 else: - -> 2950 output = call_func_with_variable_args( - 2951 self.func, input, config, run_manager, **kwargs - 2952 ) - 2953 # If the output is a runnable, invoke it - 2954 if isinstance(output, Runnable): - - File langchain_core/runnables/config.py:323, in call_func_with_variable_args(func, input, config, run_manager, **kwargs) - 321 if run_manager is not None and accepts_run_manager(func): - 322 kwargs["run_manager"] = run_manager - --> 323 return func(input, **kwargs) - - Cell In[1], line 4, in bad_code(inputs) - 3 def bad_code(inputs) -> int: - ----> 4 raise NotImplementedError('For demo purpose') - - NotImplementedError: For demo purpose - ``` - type: textarea id: description