mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-07 17:28:53 +00:00
9 lines
284 B
TypeScript
9 lines
284 B
TypeScript
import { createClient } from "./gen/client/client"
|
|
import { type Config } from "./gen/client/types"
|
|
import { OpencodeClient } from "./gen/sdk.gen"
|
|
|
|
export function createOpencodeClient(config?: Config) {
|
|
const client = createClient(config)
|
|
return new OpencodeClient({ client })
|
|
}
|