Skip to content

Commit 4d80d0d

Browse files
author
Serge H.
committed
updated attribution
1 parent 91eb8e7 commit 4d80d0d

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## [Unreleased]
44

55
### Added
6-
- Add LiteLLM provider support, allowing connection to any LLM via a LiteLLM proxy server. Includes configuration for API URL, API Key, and Model ID, plus cost calculation support via the `/spend/calculate` endpoint.
6+
- Add LiteLLM provider support - adapted from Cline's implementation (PR #1618) - allowing connection to any LLM via a LiteLLM proxy server. Includes configuration for API URL, API Key, and Model ID, plus cost calculation support via the `/spend/calculate` endpoint.
77

88
## [3.11.12] - 2025-04-09
99

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ Thanks to all our contributors who have helped make Roo Code better!
207207

208208
<!-- END CONTRIBUTORS SECTION -->
209209

210+
## Attributions
211+
212+
The LiteLLM provider implementation was ported and adapted from [Cline](https://github.com/cline-app/cline)'s LiteLLM provider, originally created by [@him0](https://github.com/him0) in [PR #1618](https://github.com/cline-app/cline/pull/1618).
213+
210214
## License
211215

212216
[Apache 2.0 © 2025 Roo Code, Inc.](./LICENSE)

src/api/providers/litellm.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* LiteLLM provider implementation for Roo Code
3+
* Ported and adapted from Cline's LiteLLM provider implementation
4+
* Original PR: https://github.com/cline-app/cline/pull/1618
5+
* Original author: @him0
6+
*/
17
import { Anthropic } from "@anthropic-ai/sdk"
28
import OpenAI from "openai"
39
import axios from "axios" // Using axios for the cost calculation request
@@ -149,4 +155,4 @@ export class LiteLLMHandler extends BaseProvider implements ApiHandler {
149155
}
150156

151157
// countTokens will use the default implementation from BaseProvider (tiktoken)
152-
}
158+
}

0 commit comments

Comments
 (0)