Skip to content

Commit ae712aa

Browse files
authored
Merge branch 'main' into fix/jetbrains-commit-generation
2 parents 5fbb2e8 + 4595c66 commit ae712aa

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- 🌐 Automate the browser
1717
- 🤖 Latest AI models
1818
- 🎁 API keys optional
19-
- 💡 **Get $20 in bonus credits when you top-up for the first time** Credits can be used with 400+ models like Gemini 2.5 Pro, Claude 4 Sonnet & Opus, and GPT-5
19+
- 💡 **Get $20 in bonus credits when you top-up for the first time** Credits can be used with 400+ models like Gemini 3 Pro, Claude 4 Sonnet & Opus, and GPT-5
2020

2121
<p align="center">
2222
<img src="https://raw.githubusercontent.com/Kilo-Org/kilocode/refs/heads/main/kilo.gif" width="100%" />
@@ -36,7 +36,7 @@
3636
## How to get started with Kilo Code
3737

3838
1. Install the Kilo Code extension from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=kilocode.Kilo-Code).
39-
2. Create your account to access 400+ cutting-edge AI models including Gemini 2.5 Pro, Claude 4 Sonnet & Opus, and GPT-5 – with transparent pricing that matches provider rates exactly.
39+
2. Create your account to access 400+ cutting-edge AI models including Gemini 3 Pro, Claude 4 Sonnet & Opus, and GPT-5 – with transparent pricing that matches provider rates exactly.
4040
3. Start coding with AI that adapts to your workflow. Watch our quick-start guide to see Kilo Code in action:
4141

4242
[![Watch the video](https://img.youtube.com/vi/pqGfYXgrhig/maxresdefault.jpg)](https://youtu.be/pqGfYXgrhig)

src/services/code-index/embedders/__tests__/openrouter.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { describe, it, expect, beforeEach, vi } from "vitest"
33
import { OpenAI } from "openai"
44
import { OpenRouterEmbedder } from "../openrouter"
55
import { getModelDimension, getDefaultModelId } from "../../../../shared/embeddingModels"
6+
import { DEFAULT_HEADERS } from "../../../../api/providers/constants" // kilocode_change
67

78
// Mock the OpenAI SDK
89
vi.mock("openai")
@@ -89,10 +90,7 @@ describe("OpenRouterEmbedder", () => {
8990
expect(MockedOpenAI).toHaveBeenCalledWith({
9091
baseURL: "https://openrouter.ai/api/v1",
9192
apiKey: mockApiKey,
92-
defaultHeaders: {
93-
"HTTP-Referer": "https://github.com/RooCodeInc/Roo-Code",
94-
"X-Title": "Roo Code",
95-
},
93+
defaultHeaders: DEFAULT_HEADERS, // kilocode_change
9694
})
9795
})
9896
})

src/services/code-index/embedders/openrouter.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { TelemetryEventName } from "@roo-code/types"
1313
import { TelemetryService } from "@roo-code/telemetry"
1414
import { Mutex } from "async-mutex"
1515
import { handleOpenAIError } from "../../../api/providers/utils/openai-error-handler"
16+
import { DEFAULT_HEADERS } from "../../../api/providers/constants" // kilocode_change
1617

1718
interface EmbeddingItem {
1819
embedding: string | number[]
@@ -67,10 +68,7 @@ export class OpenRouterEmbedder implements IEmbedder {
6768
this.embeddingsClient = new OpenAI({
6869
baseURL: this.baseUrl,
6970
apiKey: apiKey,
70-
defaultHeaders: {
71-
"HTTP-Referer": "https://github.com/RooCodeInc/Roo-Code",
72-
"X-Title": "Roo Code",
73-
},
71+
defaultHeaders: DEFAULT_HEADERS, // kilocode_change
7472
})
7573
} catch (error) {
7674
// Use the error handler to transform ByteString conversion errors

0 commit comments

Comments
 (0)