MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / error_generator

Method error_generator

api/openrouter_client.py:123–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 # Instead of raising an exception, return a generator that yields the error message
122 # This allows the error to be displayed to the user in the streaming response
123 async def error_generator():
124 yield error_msg
125 return error_generator()
126
127 api_kwargs = api_kwargs or {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected