|
8 | 8 | GenerativeFriendliAIConfig, |
9 | 9 | GenerativeGoogleConfig, |
10 | 10 | GenerativeMistralConfig, |
11 | | - GenerativeOctoAIConfig, |
12 | 11 | GenerativeOllamaConfig, |
13 | 12 | GenerativeOpenAIConfig, |
14 | 13 | ModuleConfig, |
@@ -1025,45 +1024,6 @@ describe('Unit testing of the vectorizer factory class', () => { |
1025 | 1024 | }); |
1026 | 1025 | }); |
1027 | 1026 |
|
1028 | | - it('should create the correct Text2VecOctoAIConfig type with defaults', () => { |
1029 | | - const config = configure.vectorizer.text2VecOctoAI(); |
1030 | | - expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-octoai'>>({ |
1031 | | - name: undefined, |
1032 | | - vectorIndex: { |
1033 | | - name: 'hnsw', |
1034 | | - config: undefined, |
1035 | | - }, |
1036 | | - vectorizer: { |
1037 | | - name: 'text2vec-octoai', |
1038 | | - config: undefined, |
1039 | | - }, |
1040 | | - }); |
1041 | | - }); |
1042 | | - |
1043 | | - it('should create the correct Text2VecOctoAIConfig type with all values', () => { |
1044 | | - const config = configure.vectorizer.text2VecOctoAI({ |
1045 | | - name: 'test', |
1046 | | - baseURL: 'base-url', |
1047 | | - model: 'model', |
1048 | | - vectorizeCollectionName: true, |
1049 | | - }); |
1050 | | - expect(config).toEqual<VectorConfigCreate<never, 'test', 'hnsw', 'text2vec-octoai'>>({ |
1051 | | - name: 'test', |
1052 | | - vectorIndex: { |
1053 | | - name: 'hnsw', |
1054 | | - config: undefined, |
1055 | | - }, |
1056 | | - vectorizer: { |
1057 | | - name: 'text2vec-octoai', |
1058 | | - config: { |
1059 | | - baseURL: 'base-url', |
1060 | | - model: 'model', |
1061 | | - vectorizeCollectionName: true, |
1062 | | - }, |
1063 | | - }, |
1064 | | - }); |
1065 | | - }); |
1066 | | - |
1067 | 1027 | it('should create the correct Text2VecOllamaConfig type with defaults', () => { |
1068 | 1028 | const config = configure.vectorizer.text2VecOllama(); |
1069 | 1029 | expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-ollama'>>({ |
@@ -1546,32 +1506,6 @@ describe('Unit testing of the generative factory class', () => { |
1546 | 1506 | }); |
1547 | 1507 | }); |
1548 | 1508 |
|
1549 | | - it('should create the correct GenerativeOctoAIConfig type with required & default values', () => { |
1550 | | - const config = configure.generative.octoai(); |
1551 | | - expect(config).toEqual<ModuleConfig<'generative-octoai', GenerativeOctoAIConfig | undefined>>({ |
1552 | | - name: 'generative-octoai', |
1553 | | - config: undefined, |
1554 | | - }); |
1555 | | - }); |
1556 | | - |
1557 | | - it('should create the correct GenerativeOctoAIConfig type with all values', () => { |
1558 | | - const config = configure.generative.octoai({ |
1559 | | - baseURL: 'base-url', |
1560 | | - maxTokens: 100, |
1561 | | - model: 'model', |
1562 | | - temperature: 0.5, |
1563 | | - }); |
1564 | | - expect(config).toEqual<ModuleConfig<'generative-octoai', GenerativeOctoAIConfig | undefined>>({ |
1565 | | - name: 'generative-octoai', |
1566 | | - config: { |
1567 | | - baseURL: 'base-url', |
1568 | | - maxTokens: 100, |
1569 | | - model: 'model', |
1570 | | - temperature: 0.5, |
1571 | | - }, |
1572 | | - }); |
1573 | | - }); |
1574 | | - |
1575 | 1509 | it('should create the correct GenerativeOllamaConfig type with required & default values', () => { |
1576 | 1510 | const config = configure.generative.ollama(); |
1577 | 1511 | expect(config).toEqual<ModuleConfig<'generative-ollama', GenerativeOllamaConfig | undefined>>({ |
|
0 commit comments