-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: anonymous Kilo Code Gateway onboarding for new users #5415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8140071
0cc09dc
e526c78
d086083
0637954
23f44e9
2e490fe
c8528aa
ba97f46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "kilo-code": minor | ||
| --- | ||
|
|
||
| New users can now start using Kilo Code immediately without any configuration - a default Kilo Code Gateway profile with a free model is automatically set up on first launch |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| import { openRouterDefaultModelId, type ProviderSettings } from "@roo-code/types" | ||||||
| import { openRouterDefaultModelId } from "@roo-code/types" | ||||||
| import { getKiloUrlFromToken } from "@roo-code/types" | ||||||
| import { TelemetryService } from "@roo-code/telemetry" | ||||||
| import { z } from "zod" | ||||||
|
|
@@ -23,7 +23,7 @@ async function fetchKilocodeDefaultModel( | |||||
| ): Promise<Defaults> { | ||||||
| try { | ||||||
| const path = organizationId ? `/organizations/${organizationId}/defaults` : `/defaults` | ||||||
| const url = getKiloUrlFromToken(`https://api.kilo.ai/api${path}`, kilocodeToken) | ||||||
| const url = getKiloUrlFromToken(`https://api.kilo.ai/api${path}`, kilocodeToken ?? "") | ||||||
|
|
||||||
| const headers: Record<string, string> = { | ||||||
| ...DEFAULT_HEADERS, | ||||||
|
|
@@ -60,7 +60,7 @@ export async function getKilocodeDefaultModel( | |||||
| organizationId?: OrganizationId, | ||||||
| ): Promise<Defaults> { | ||||||
| const key = JSON.stringify({ | ||||||
| kilocodeToken, | ||||||
| kilocodeToken: kilocodeToken ?? "anonymous", | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| organizationId, | ||||||
| }) | ||||||
| let defaultModelPromise = cache.get(key) | ||||||
|
|
||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will not work properly, but whatever