chore(vendor): import pi 1.3.0
Imported as a linear vendor commit so forge rebases do not replay the upstream root tree. git-subtree-dir: third_party/pi git-subtree-split: 71023aec1546d6d677a65669c5665c0927ce0dd0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Manual SDK probe for OpenAI Codex prompt caching through the tool loop.
|
||||
*
|
||||
@@ -11,6 +12,7 @@ import { mkdirSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import { dirname, join, resolve } from "node:path";
|
||||
import process from "node:process";
|
||||
import { normalizeContext } from "@earendil-works/pi-ai";
|
||||
import {
|
||||
type Api,
|
||||
type AssistantMessage,
|
||||
@@ -289,7 +291,11 @@ async function main(): Promise<void> {
|
||||
context: Context,
|
||||
options?: SimpleStreamOptions,
|
||||
): AssistantMessageEventStream =>
|
||||
streamSimpleOpenAICodexResponses(registryModel as Model<"openai-codex-responses">, context, options);
|
||||
streamSimpleOpenAICodexResponses(
|
||||
registryModel as Model<"openai-codex-responses">,
|
||||
normalizeContext(context),
|
||||
options,
|
||||
);
|
||||
modelRegistry.registerProvider("openai-codex", {
|
||||
api: "openai-codex-responses",
|
||||
baseUrl: baseModel.baseUrl,
|
||||
|
||||
Reference in New Issue
Block a user