(provider: KimiChatProvider)
| 42 | }; |
| 43 | |
| 44 | function getGenerationState(provider: KimiChatProvider): KimiGenerationState { |
| 45 | return Reflect.get(provider, '_generationKwargs') as KimiGenerationState; |
| 46 | } |
| 47 | |
| 48 | /** Capture the request body sent to OpenAI by mocking the client. */ |
| 49 | async function captureRequestBody( |