feat: add whisperDetail method and remove deprecated V1 client#19
Merged
johnyrahul merged 8 commits intomainfrom Mar 16, 2026
Merged
feat: add whisperDetail method and remove deprecated V1 client#19johnyrahul merged 8 commits intomainfrom
johnyrahul merged 8 commits intomainfrom
Conversation
Add whisperDetail(whisperHash) method to LLMWhispererClientV2 for retrieving extraction job metadata via the /whisper-detail API endpoint. Remove deprecated LLMWhispererClient (V1) and all its usages. Update README with test running instructions and environment setup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Greptile SummaryThis PR adds the Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant LLMWhispererClientV2
participant AxiosRetry
participant LLMWhispererAPI
Note over Caller,LLMWhispererAPI: Typical async extraction + detail flow
Caller->>LLMWhispererClientV2: whisper({ filePath, waitForCompletion: false })
LLMWhispererClientV2->>AxiosRetry: POST /whisper (headers: { ...this.headers })
Note right of LLMWhispererClientV2: Spread copy — this.headers NOT mutated
AxiosRetry->>LLMWhispererAPI: POST /whisper
LLMWhispererAPI-->>AxiosRetry: 202 { whisper_hash }
AxiosRetry-->>LLMWhispererClientV2: response
LLMWhispererClientV2-->>Caller: { whisper_hash, statusCode: 202 }
Caller->>LLMWhispererClientV2: whisperStatus(whisperHash)
LLMWhispererClientV2->>AxiosRetry: GET /whisper-status?whisper_hash=...
AxiosRetry->>LLMWhispererAPI: GET /whisper-status
LLMWhispererAPI-->>AxiosRetry: 200 { status: "processed" }
AxiosRetry-->>LLMWhispererClientV2: response
LLMWhispererClientV2-->>Caller: { status: "processed", statusCode: 200 }
Caller->>LLMWhispererClientV2: whisperDetail(whisperHash)
LLMWhispererClientV2->>AxiosRetry: GET /whisper-detail?whisper_hash=...
alt 503 / 429 / 5xx
AxiosRetry->>LLMWhispererAPI: retry (up to maxRetries)
end
AxiosRetry->>LLMWhispererAPI: GET /whisper-detail
LLMWhispererAPI-->>AxiosRetry: 200 { mode, processed_pages, whisper_hash, ... }
AxiosRetry-->>LLMWhispererClientV2: response
LLMWhispererClientV2-->>Caller: response.data (extraction metadata)
Last reviewed commit: bbf2080 |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Rahul Johny <116638720+johnyrahul@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Rahul Johny <116638720+johnyrahul@users.noreply.github.com>
Use a spread copy of this.headers in whisper() so file-upload headers (Content-Type, Content-Length) don't leak into subsequent GET calls. Remove the now-unnecessary delete workaround in whisperStatus(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Rahul Johny <116638720+johnyrahul@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Rahul Johny <116638720+johnyrahul@users.noreply.github.com>
jaseemjaskp
approved these changes
Mar 16, 2026
muhammad-ali-e
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
whisperDetail(whisperHash)method toLLMWhispererClientV2for retrieving extraction job metadata via the/whisper-detailAPI endpointLLMWhispererClient(V1) class and all its usages (includingtest/v1test.jsand V1 tests inretry.test.js)Equivalent of Zipstack/llm-whisperer-python-client#32 for the JS client.
Test plan
npm test— 21 passed, 1 skipped)whisperDetailwith a valid whisper hash🤖 Generated with Claude Code