mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 01:00:24 +00:00
feat(ai): add OpenAI Codex OAuth + responses provider
This commit is contained in:
parent
6ddfd1be13
commit
1650041a63
22 changed files with 2705 additions and 5 deletions
28
packages/ai/scripts/copy-assets.js
Normal file
28
packages/ai/scripts/copy-assets.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { copyFileSync, mkdirSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const packageRoot = join(__dirname, "..");
|
||||
|
||||
const source = join(
|
||||
packageRoot,
|
||||
"src",
|
||||
"providers",
|
||||
"openai-codex",
|
||||
"prompts",
|
||||
"codex-instructions.md",
|
||||
);
|
||||
const destination = join(
|
||||
packageRoot,
|
||||
"dist",
|
||||
"providers",
|
||||
"openai-codex",
|
||||
"prompts",
|
||||
"codex-instructions.md",
|
||||
);
|
||||
|
||||
mkdirSync(dirname(destination), { recursive: true });
|
||||
copyFileSync(source, destination);
|
||||
console.log(`[pi-ai] Copied ${source} -> ${destination}`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue