File tree Expand file tree Collapse file tree 2 files changed +2
-62
lines changed Expand file tree Collapse file tree 2 files changed +2
-62
lines changed Original file line number Diff line number Diff line change 1
1
import { GROQ } from '../../globals' ;
2
- import {
3
- ChatCompletionResponse ,
4
- ErrorResponse ,
5
- ProviderConfig ,
6
- } from '../types' ;
2
+ import { ChatCompletionResponse , ErrorResponse } from '../types' ;
7
3
import {
8
4
generateErrorResponse ,
9
5
generateInvalidProviderResponseError ,
10
6
} from '../utils' ;
11
7
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
-
63
8
export interface GroqChatCompleteResponse extends ChatCompletionResponse { }
64
9
65
10
export interface GroqErrorResponse extends ErrorResponse { }
Original file line number Diff line number Diff line change 1
1
import { ProviderConfigs } from '../types' ;
2
2
import GroqAPIConfig from './api' ;
3
3
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' ;
10
5
import { GROQ } from '../../globals' ;
11
6
12
7
const GroqConfig : ProviderConfigs = {
You can’t perform that action at this time.
0 commit comments