chore: generate

This commit is contained in:
kilo-maintainer[bot]
2026-02-12 15:38:51 +00:00
parent 604bcaa3e1
commit 8a56ac1a8a
3 changed files with 145 additions and 0 deletions
+45
View File
@@ -41,6 +41,8 @@ import type {
GlobalEventResponses,
GlobalHealthResponses,
InstanceDisposeResponses,
KiloFimErrors,
KiloFimResponses,
KiloNotificationsErrors,
KiloNotificationsResponses,
KiloOrganizationSetErrors,
@@ -2226,6 +2228,49 @@ export class Kilo extends HeyApiClient {
})
}
/**
* FIM completion
*
* Proxy a Fill-in-the-Middle completion request to the Kilo Gateway
*/
public fim<ThrowOnError extends boolean = false>(
parameters?: {
directory?: string
prefix?: string
suffix?: string
model?: string
maxTokens?: number
temperature?: number
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "directory" },
{ in: "body", key: "prefix" },
{ in: "body", key: "suffix" },
{ in: "body", key: "model" },
{ in: "body", key: "maxTokens" },
{ in: "body", key: "temperature" },
],
},
],
)
return (options?.client ?? this.client).sse.post<KiloFimResponses, KiloFimErrors, ThrowOnError>({
url: "/kilo/fim",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
})
}
/**
* Get Kilo notifications
*
+31
View File
@@ -4248,6 +4248,37 @@ export type KiloOrganizationSetResponses = {
export type KiloOrganizationSetResponse = KiloOrganizationSetResponses[keyof KiloOrganizationSetResponses]
export type KiloFimData = {
body?: {
prefix: string
suffix: string
model?: string
maxTokens?: number
temperature?: number
}
path?: never
query?: {
directory?: string
}
url: "/kilo/fim"
}
export type KiloFimErrors = {
/**
* Bad request
*/
400: BadRequestError
}
export type KiloFimError = KiloFimErrors[keyof KiloFimErrors]
export type KiloFimResponses = {
/**
* Streaming FIM completion response
*/
200: unknown
}
export type KiloNotificationsData = {
body?: never
path?: never
+69
View File
@@ -4209,6 +4209,75 @@
]
}
},
"/kilo/fim": {
"post": {
"operationId": "kilo.fim",
"parameters": [
{
"in": "query",
"name": "directory",
"schema": {
"type": "string"
}
}
],
"summary": "FIM completion",
"description": "Proxy a Fill-in-the-Middle completion request to the Kilo Gateway",
"responses": {
"200": {
"description": "Streaming FIM completion response",
"content": {
"text/event-stream": {
"schema": {}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BadRequestError"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"prefix": {
"type": "string"
},
"suffix": {
"type": "string"
},
"model": {
"type": "string"
},
"maxTokens": {
"type": "number"
},
"temperature": {
"type": "number"
}
},
"required": ["prefix", "suffix"]
}
}
}
},
"x-codeSamples": [
{
"lang": "js",
"source": "import { createOpencodeClient } from \"@kilocode/sdk\n\nconst client = createOpencodeClient()\nawait client.kilo.fim({\n ...\n})"
}
]
}
},
"/kilo/notifications": {
"get": {
"operationId": "kilo.notifications",