mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 09:49:05 +00:00
Migrated internal/llm from manual net/http implementation to anthropic-sdk-go v1.47.0 and openai-go/v3 v3.39.0, reducing ~400 lines of retry, request-building, and streaming code. Simplified LLMClient interface to single CompletionsWithCtx method. Fixed Anthropic auth to use WithAuthToken (Bearer) instead of WithAPIKey (X-Api-Key) for proxy compatibility. Fixed OpenAI message builder to use ExtractText() for proper []ContentBlock handling. |
||
|---|---|---|
| .. | ||
| git.go | ||
| hunk.go | ||
| hunk_test.go | ||
| parser.go | ||
| relocation.go | ||
| relocation_test.go | ||
| resolver.go | ||
| resolver_test.go | ||