File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import { UpstageConfig } from './upstage';
47
47
import { LAMBDA } from '../globals' ;
48
48
import { LambdaProviderConfig } from './lambda' ;
49
49
import { DashScopeConfig } from './dashscope' ;
50
+ import QdrantConfig from './qdrant' ;
50
51
51
52
const Providers : { [ key : string ] : ProviderConfigs } = {
52
53
openai : OpenAIConfig ,
@@ -94,6 +95,7 @@ const Providers: { [key: string]: ProviderConfigs } = {
94
95
upstage : UpstageConfig ,
95
96
[ LAMBDA ] : LambdaProviderConfig ,
96
97
dashscope : DashScopeConfig ,
98
+ qdrant : QdrantConfig ,
97
99
} ;
98
100
99
101
export default Providers ;
Original file line number Diff line number Diff line change
1
+ import { ProviderAPIConfig } from '../types' ;
2
+
3
+ const QdrantAPIConfig : ProviderAPIConfig = {
4
+ getBaseURL : ( { providerOptions } ) => {
5
+ return providerOptions . customHost || '' ;
6
+ } ,
7
+ headers : ( { providerOptions } ) => {
8
+ return { 'api-key' : `Bearer ${ providerOptions . apiKey } ` } ;
9
+ } ,
10
+ getEndpoint : ( { fn } ) => {
11
+ switch ( fn ) {
12
+ default :
13
+ return '' ;
14
+ }
15
+ } ,
16
+ } ;
17
+
18
+ export default QdrantAPIConfig ;
Original file line number Diff line number Diff line change
1
+ import { ProviderConfigs } from '../types' ;
2
+ import QdrantAPIConfig from './api' ;
3
+
4
+ const QdrantConfig : ProviderConfigs = {
5
+ api : QdrantAPIConfig ,
6
+ responseTransforms : { } ,
7
+ } ;
8
+
9
+ export default QdrantConfig ;
You can’t perform that action at this time.
0 commit comments