u
This commit is contained in:
9
cli.js
9
cli.js
@@ -2,6 +2,8 @@
|
|||||||
import 'dotenv/config';
|
import 'dotenv/config';
|
||||||
import OpenAI from 'openai';
|
import OpenAI from 'openai';
|
||||||
|
|
||||||
|
//csk-8jftdte6r6vf8fdvp9xkyek5t3jnc6jfhh93d3ewfcwxxvh9
|
||||||
|
|
||||||
import { promises as fs } from "node:fs";
|
import { promises as fs } from "node:fs";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
@@ -46,7 +48,8 @@ async function loadTools() {
|
|||||||
return Object.fromEntries(toolEntries);
|
return Object.fromEntries(toolEntries);
|
||||||
}
|
}
|
||||||
|
|
||||||
streamOnce(new OpenAI({ apiKey: process.env.OPENAI_API_KEY }), 'Erstelle eine React Project für eine Abovverwaltung. Mui, Sqllite, Express, Nodejs, KEIN Typescript, Aber ESM import. webpack, kein vite.');
|
streamOnce(new OpenAI({ apiKey: 'csk-8jftdte6r6vf8fdvp9xkyek5t3jnc6jfhh93d3ewfcwxxvh9', baseURL: "https://api.cerebras.ai/v1"}), 'Erstelle eine React Project für eine Abovverwaltung. Mui, Sqllite, Express, Nodejs, KEIN Typescript, Aber ESM import. webpack, kein vite. HRM, nodemon');
|
||||||
|
//streamOnce(new OpenAI({ apiKey: process.env.OPENAI_API_KEY }), 'Erstelle eine React Project für eine Abovverwaltung. Mui, Sqllite, Express, Nodejs, KEIN Typescript, Aber ESM import. webpack, kein vite. HRM, nodemon');
|
||||||
|
|
||||||
|
|
||||||
let counter = 0;
|
let counter = 0;
|
||||||
@@ -62,10 +65,10 @@ async function streamOnce(openai, userText) {
|
|||||||
while(input.length > 0){
|
while(input.length > 0){
|
||||||
|
|
||||||
const call = {
|
const call = {
|
||||||
model: 'gpt-5-mini',
|
model: 'gpt-oss-120b',
|
||||||
input: input,
|
input: input,
|
||||||
text: { format: { type: 'text' }, verbosity: 'high' },
|
text: { format: { type: 'text' }, verbosity: 'high' },
|
||||||
reasoning: { effort: 'low', summary: 'detailed' },
|
reasoning: { effort: 'medium', summary: 'detailed' },
|
||||||
tools: Object.values(toolsByFile).map(t => t.def),
|
tools: Object.values(toolsByFile).map(t => t.def),
|
||||||
store: true,
|
store: true,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user