chore(sdk): remove unrelated generated drift
This commit is contained in:
parent
9b7ad8f97e
commit
14dc46f0d0
2 changed files with 3 additions and 96 deletions
|
|
@ -279,8 +279,6 @@ import type {
|
||||||
V2FsListResponses,
|
V2FsListResponses,
|
||||||
V2FsReadErrors,
|
V2FsReadErrors,
|
||||||
V2FsReadResponses,
|
V2FsReadResponses,
|
||||||
V2GenerateTextErrors,
|
|
||||||
V2GenerateTextResponses,
|
|
||||||
V2HealthGetErrors,
|
V2HealthGetErrors,
|
||||||
V2HealthGetResponses,
|
V2HealthGetResponses,
|
||||||
V2IntegrationAttemptCancelErrors,
|
V2IntegrationAttemptCancelErrors,
|
||||||
|
|
@ -5946,48 +5944,6 @@ export class Model extends HeyApiClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Generate extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Generate text
|
|
||||||
*
|
|
||||||
* Run one stateless model generation at the requested location and return the assistant text. Uses the location's default model when none is specified.
|
|
||||||
*/
|
|
||||||
public text<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
location?: {
|
|
||||||
directory?: string
|
|
||||||
workspace?: string
|
|
||||||
}
|
|
||||||
prompt?: string
|
|
||||||
model?: ModelRef
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams(
|
|
||||||
[parameters],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
args: [
|
|
||||||
{ in: "query", key: "location" },
|
|
||||||
{ in: "body", key: "prompt" },
|
|
||||||
{ in: "body", key: "model" },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
)
|
|
||||||
return (options?.client ?? this.client).post<V2GenerateTextResponses, V2GenerateTextErrors, ThrowOnError>({
|
|
||||||
url: "/api/generate",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
...options?.headers,
|
|
||||||
...params.headers,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Provider2 extends HeyApiClient {
|
export class Provider2 extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* List providers
|
* List providers
|
||||||
|
|
@ -7277,11 +7233,6 @@ export class V2 extends HeyApiClient {
|
||||||
return (this._model ??= new Model({ client: this.client }))
|
return (this._model ??= new Model({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _generate?: Generate
|
|
||||||
get generate(): Generate {
|
|
||||||
return (this._generate ??= new Generate({ client: this.client }))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _provider?: Provider2
|
private _provider?: Provider2
|
||||||
get provider(): Provider2 {
|
get provider(): Provider2 {
|
||||||
return (this._provider ??= new Provider2({ client: this.client }))
|
return (this._provider ??= new Provider2({ client: this.client }))
|
||||||
|
|
|
||||||
|
|
@ -648,6 +648,7 @@ export type Prompt = {
|
||||||
text: string
|
text: string
|
||||||
files?: Array<PromptFileAttachment>
|
files?: Array<PromptFileAttachment>
|
||||||
agents?: Array<PromptAgentAttachment>
|
agents?: Array<PromptAgentAttachment>
|
||||||
|
system?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Pty = {
|
export type Pty = {
|
||||||
|
|
@ -2775,6 +2776,7 @@ export type PromptInput = {
|
||||||
text: string
|
text: string
|
||||||
files?: Array<PromptInputFileAttachment>
|
files?: Array<PromptInputFileAttachment>
|
||||||
agents?: Array<PromptAgentAttachment>
|
agents?: Array<PromptAgentAttachment>
|
||||||
|
system?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConflictError = {
|
export type ConflictError = {
|
||||||
|
|
@ -2848,12 +2850,6 @@ export type SessionMessagesResponse = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GenerateTextResponse = {
|
|
||||||
data: {
|
|
||||||
text: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ProviderNotFoundError = {
|
export type ProviderNotFoundError = {
|
||||||
_tag: "ProviderNotFoundError"
|
_tag: "ProviderNotFoundError"
|
||||||
providerID: string
|
providerID: string
|
||||||
|
|
@ -4118,6 +4114,7 @@ export type SessionMessageUser = {
|
||||||
text: string
|
text: string
|
||||||
files?: Array<PromptFileAttachment>
|
files?: Array<PromptFileAttachment>
|
||||||
agents?: Array<PromptAgentAttachment>
|
agents?: Array<PromptAgentAttachment>
|
||||||
|
system?: string
|
||||||
type: "user"
|
type: "user"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -12424,47 +12421,6 @@ export type V2ModelListResponses = {
|
||||||
|
|
||||||
export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponses]
|
export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponses]
|
||||||
|
|
||||||
export type V2GenerateTextData = {
|
|
||||||
body: {
|
|
||||||
prompt: string
|
|
||||||
model?: ModelRef
|
|
||||||
}
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
location?: {
|
|
||||||
directory?: string
|
|
||||||
workspace?: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
url: "/api/generate"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type V2GenerateTextErrors = {
|
|
||||||
/**
|
|
||||||
* InvalidRequestError
|
|
||||||
*/
|
|
||||||
400: InvalidRequestError
|
|
||||||
/**
|
|
||||||
* UnauthorizedError
|
|
||||||
*/
|
|
||||||
401: UnauthorizedError
|
|
||||||
/**
|
|
||||||
* ServiceUnavailableError
|
|
||||||
*/
|
|
||||||
503: ServiceUnavailableError
|
|
||||||
}
|
|
||||||
|
|
||||||
export type V2GenerateTextError = V2GenerateTextErrors[keyof V2GenerateTextErrors]
|
|
||||||
|
|
||||||
export type V2GenerateTextResponses = {
|
|
||||||
/**
|
|
||||||
* GenerateTextResponse
|
|
||||||
*/
|
|
||||||
200: GenerateTextResponse
|
|
||||||
}
|
|
||||||
|
|
||||||
export type V2GenerateTextResponse = V2GenerateTextResponses[keyof V2GenerateTextResponses]
|
|
||||||
|
|
||||||
export type V2ProviderListData = {
|
export type V2ProviderListData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue