Skip to content

Commit

Permalink
fix(frontend): update README for environment variable setup and clean…
Browse files Browse the repository at this point in the history
… up logging in OpenAI model provider
  • Loading branch information
Sma1lboy committed Jan 16, 2025
1 parent b9745e1 commit 5ede8d4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// remember to follow this command to configuration the backend endpoint:

```sh
cp example.env .env
cp .env.example .env
```

struct for now
Expand Down
3 changes: 1 addition & 2 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"paths": {
"@/*": ["./src/*"]
},
"strict": false,
"target": "ES2017"
"strict": false
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
Expand Down
2 changes: 0 additions & 2 deletions llm-server/src/model/openai-model-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class OpenAIModelProvider {

async initialize(): Promise<void> {
this.logger.log('Initializing OpenAI model...');
this.logger.log('Options:', this.options);
if (!this.options.apiKey) {
throw new Error('OpenAI API key is required');
}
Expand Down Expand Up @@ -93,7 +92,6 @@ export class OpenAIModelProvider {
model: string;
messages: ChatCompletionMessageParam[];
};
this.logger.log(`Processing model (attempt ${model + 1})`);
this.logger.log(`Processing request (attempt ${retries + 1})`);
const startTime = Date.now();

Expand Down

0 comments on commit 5ede8d4

Please sign in to comment.