File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed
Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,12 @@ npm install @nginh/llmforge@1.0.0
2727``` typescript
2828import { RunnerClient } from ' llmforge' ;
2929
30- const config = {
30+ const openaiConfig = {
3131 llmConfig: {
32- apiKey: process .env .OPENAI_API_KEY ,
32+ apiKey: process .env .OPENAI_API_KEY || ' ' ,
3333 provider: ' openai' ,
3434 model: ' gpt-3.5-turbo' ,
35- generationConfig: {
36- temperature: 0.7 ,
37- maxOutputTokens: 150 ,
38- },
3935 },
40- enableFallback: false ,
4136};
4237
4338const client = await RunnerClient .create (config );
Original file line number Diff line number Diff line change @@ -17,16 +17,7 @@ async function testOpenAI() {
1717 apiKey : process . env . OPENAI_API_KEY || '' ,
1818 provider : 'openai' ,
1919 model : 'gpt-3.5-turbo' ,
20- generationConfig : {
21- temperature : 0.7 ,
22- maxOutputTokens : 150 ,
23- } ,
24- retryConfig : {
25- maxRetries : 3 ,
26- retryDelay : 1000 ,
27- } ,
2820 } ,
29- enableFallback : false ,
3021 } ;
3122
3223 try {
You can’t perform that action at this time.
0 commit comments