Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
narengogi committed Dec 11, 2024
1 parent 1584ee4 commit b12e66d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 62 deletions.
57 changes: 1 addition & 56 deletions src/providers/groq/chatComplete.ts
Original file line number Diff line number Diff line change
@@ -1,65 +1,10 @@
import { GROQ } from '../../globals';
import {
ChatCompletionResponse,
ErrorResponse,
ProviderConfig,
} from '../types';
import { ChatCompletionResponse, ErrorResponse } from '../types';
import {
generateErrorResponse,
generateInvalidProviderResponseError,
} from '../utils';

export const GroqChatCompleteConfig: ProviderConfig = {
model: {
param: 'model',
required: true,
default: 'mixtral-8x7b-32768',
},
messages: {
param: 'messages',
default: '',
},
max_tokens: {
param: 'max_tokens',
default: 100,
min: 0,
},
max_completion_tokens: {
param: 'max_tokens',
default: 100,
min: 0,
},
temperature: {
param: 'temperature',
default: 1,
min: 0,
max: 2,
},
top_p: {
param: 'top_p',
default: 1,
min: 0,
max: 1,
},
stream: {
param: 'stream',
default: false,
},
stop: {
param: 'stop',
},
n: {
param: 'n',
default: 1,
max: 1,
min: 1,
},
tools: {
param: 'tools',
required: false,
},
};

export interface GroqChatCompleteResponse extends ChatCompletionResponse {}

export interface GroqErrorResponse extends ErrorResponse {}
Expand Down
7 changes: 1 addition & 6 deletions src/providers/groq/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { ProviderConfigs } from '../types';
import GroqAPIConfig from './api';
import { GroqChatCompleteStreamChunkTransform } from './chatComplete';
import {
chatCompleteParams,
completeParams,
embedParams,
responseTransformers,
} from '../open-ai-base';
import { chatCompleteParams, responseTransformers } from '../open-ai-base';
import { GROQ } from '../../globals';

const GroqConfig: ProviderConfigs = {
Expand Down

0 comments on commit b12e66d

Please sign in to comment.