-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't workingnotebookRelated to (Jupyter) notebooksRelated to (Jupyter) notebooksserverRelated to the LSP serverRelated to the LSP server
Description
https://files.rambhat.la/s/ySXwKiXNSLwcyde
from langchain_core.prompts import ChatPromptTemplate
system = """..."""
prompt = ChatPromptTemplate.from_messages([("system", system), ("human", "{input}")])
prompted_llm = prompt | llm
output = prompted_llm.invoke(texts[1])
print(output)2024-12-04 09:50:35.199 [info] panicked at crates/ruff_server/src/server/api/requests/hover.rs:36:10:
hover should only be called on text documents or notebook cells
2024-12-04 09:50:35.199 [info] 0: ruff_server::server::Server::run::{{closure}}
1: std::panicking::rust_panic_with_hook
2: std::panicking::begin_panic_handler::{{closure}}
2024-12-04 09:50:35.200 [info] 3: std::sys::backtrace::__rust_end_short_backtrace
4: rust_begin_unwind
5: core::panicking::panic_fmt
2024-12-04 09:50:35.200 [info] 6: core::option::expect_failed
7: <ruff_server::server::api::requests::hover::Hover
2024-12-04 09:50:35.200 [info] as ruff_server::server::api::traits::BackgroundDocumentRequestHandler>::run_with_snapshot
8: core::
2024-12-04 09:50:35.200 [info] ops::function::FnOnce::call_once{{vtable.shim}}
9: core::ops
2024-12-04 09:50:35.200 [info] ::function::FnOnce::call_once{{vtable.shim}}
10: std::sys::backtrace::__rust_begin_short_backtrace
2024-12-04 09:50:35.200 [info] 11: core::ops::function::FnOnce::call_once{{vtable.shim}}
2024-12-04 09:50:35.200 [info] 12: std::sys::pal::unix::thread::Thread::new::thread_start
13:
2024-12-04 09:50:35.200 [info] start_thread
14: clone
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnotebookRelated to (Jupyter) notebooksRelated to (Jupyter) notebooksserverRelated to the LSP serverRelated to the LSP server