62 matches across 1 files for error path:libs/core/langchain_core/language_models/chat_models.py lang:Python
snippet_mode: auto · sorted by relevance
libs/core/langchain_core/language_models/chat_models.py PYTHON 62 matches · showing 5 view file →
106
107
108def _generate_response_from_error(error: BaseException) -> list[ChatGeneration]:
109 if hasattr(error, "response"):
110 response = error.response
· · ·
109 if hasattr(error, "response"):
110 response = error.response
111 metadata: dict = {}
· · ·
110 response = error.response
111 metadata: dict = {}
112 if hasattr(response, "json"):
· · ·
125 if hasattr(response, "status_code"):
126 metadata["status_code"] = response.status_code
127 if hasattr(error, "request_id"):
128 metadata["request_id"] = error.request_id
129 generations = [
· · ·
128 metadata["request_id"] = error.request_id
129 generations = [
130 ChatGeneration(message=AIMessage(content="", response_metadata=metadata))
+ 57 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.