(self, script: list[list[dict]])
| 1044 | class ScriptedApi(ApiClient): |
| 1045 | """按脚本返回预设响应的 Mock API""" |
| 1046 | def __init__(self, script: list[list[dict]]): |
| 1047 | self._script = iter(script) |
| 1048 | def stream(self, system_prompt, messages): |
| 1049 | return next(self._script) |
| 1050 |
nothing calls this directly
no outgoing calls
no test coverage detected