chore: generate
This commit is contained in:
@@ -119,7 +119,10 @@ export async function tmpdir<T>(options?: TmpDirOptions<T>) {
|
||||
}
|
||||
|
||||
/** Effectful scoped tmpdir. Cleaned up when the scope closes. Make sure these stay in sync */
|
||||
export function tmpdirScoped(options?: { git?: boolean; config?: Partial<Config.Info> | (() => Partial<Config.Info>) }) {
|
||||
export function tmpdirScoped(options?: {
|
||||
git?: boolean
|
||||
config?: Partial<Config.Info> | (() => Partial<Config.Info>)
|
||||
}) {
|
||||
return Effect.gen(function* () {
|
||||
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner
|
||||
const dirpath = sanitizePath(path.join(os.tmpdir(), "opencode-test-" + Math.random().toString(36).slice(2)))
|
||||
|
||||
@@ -1808,18 +1808,13 @@ describe("session.llm.stream", () => {
|
||||
|
||||
const chunks = [
|
||||
{
|
||||
candidates: [
|
||||
{ content: { parts: [{ text: "Hello" }] }, finishReason: "STOP" },
|
||||
],
|
||||
candidates: [{ content: { parts: [{ text: "Hello" }] }, finishReason: "STOP" }],
|
||||
usageMetadata: { promptTokenCount: 1, candidatesTokenCount: 1, totalTokenCount: 2 },
|
||||
},
|
||||
]
|
||||
const request = waitRequest(pathSuffix, createEventResponse(chunks))
|
||||
|
||||
const resolved = yield* Provider.use.getModel(
|
||||
ProviderID.make(geminiFixture.providerID),
|
||||
ModelID.make(model.id),
|
||||
)
|
||||
const resolved = yield* Provider.use.getModel(ProviderID.make(geminiFixture.providerID), ModelID.make(model.id))
|
||||
const sessionID = SessionID.make("session-test-4")
|
||||
const agent = {
|
||||
name: "test",
|
||||
|
||||
Reference in New Issue
Block a user