mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
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.
This commit is contained in:
parent
c425e6f740
commit
45f49ca439
23
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
23
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
@ -52,35 +52,12 @@ body:
|
|||||||
def bad_code(inputs) -> int:
|
def bad_code(inputs) -> int:
|
||||||
raise NotImplementedError('For demo purpose')
|
raise NotImplementedError('For demo purpose')
|
||||||
|
|
||||||
|
|
||||||
chain = RunnableLambda(bad_code)
|
chain = RunnableLambda(bad_code)
|
||||||
chain.invoke('Hello!')
|
chain.invoke('Hello!')
|
||||||
```
|
```
|
||||||
|
|
||||||
Include both the error and the full stack trace if reporting an exception!
|
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
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
|
Loading…
Reference in New Issue
Block a user