Skip to content

Commit b12e66d

Browse files
committed
remove unused imports
1 parent 1584ee4 commit b12e66d

File tree

2 files changed

+2
-62
lines changed

2 files changed

+2
-62
lines changed

src/providers/groq/chatComplete.ts

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,10 @@
11
import { GROQ } from '../../globals';
2-
import {
3-
ChatCompletionResponse,
4-
ErrorResponse,
5-
ProviderConfig,
6-
} from '../types';
2+
import { ChatCompletionResponse, ErrorResponse } from '../types';
73
import {
84
generateErrorResponse,
95
generateInvalidProviderResponseError,
106
} from '../utils';
117

12-
export const GroqChatCompleteConfig: ProviderConfig = {
13-
model: {
14-
param: 'model',
15-
required: true,
16-
default: 'mixtral-8x7b-32768',
17-
},
18-
messages: {
19-
param: 'messages',
20-
default: '',
21-
},
22-
max_tokens: {
23-
param: 'max_tokens',
24-
default: 100,
25-
min: 0,
26-
},
27-
max_completion_tokens: {
28-
param: 'max_tokens',
29-
default: 100,
30-
min: 0,
31-
},
32-
temperature: {
33-
param: 'temperature',
34-
default: 1,
35-
min: 0,
36-
max: 2,
37-
},
38-
top_p: {
39-
param: 'top_p',
40-
default: 1,
41-
min: 0,
42-
max: 1,
43-
},
44-
stream: {
45-
param: 'stream',
46-
default: false,
47-
},
48-
stop: {
49-
param: 'stop',
50-
},
51-
n: {
52-
param: 'n',
53-
default: 1,
54-
max: 1,
55-
min: 1,
56-
},
57-
tools: {
58-
param: 'tools',
59-
required: false,
60-
},
61-
};
62-
638
export interface GroqChatCompleteResponse extends ChatCompletionResponse {}
649

6510
export interface GroqErrorResponse extends ErrorResponse {}

src/providers/groq/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { ProviderConfigs } from '../types';
22
import GroqAPIConfig from './api';
33
import { GroqChatCompleteStreamChunkTransform } from './chatComplete';
4-
import {
5-
chatCompleteParams,
6-
completeParams,
7-
embedParams,
8-
responseTransformers,
9-
} from '../open-ai-base';
4+
import { chatCompleteParams, responseTransformers } from '../open-ai-base';
105
import { GROQ } from '../../globals';
116

127
const GroqConfig: ProviderConfigs = {

0 commit comments

Comments
 (0)