Skip to content

Commit f3e299a

Browse files
committed
Refactor OpenAI configuration in README and test files; remove unused generation and retry configurations
1 parent 348f21a commit f3e299a

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ npm install @nginh/llmforge@1.0.0
2727
```typescript
2828
import { 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

4338
const client = await RunnerClient.create(config);

test.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)