You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/collections/configure/generative.ts
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ import {
12
12
GenerativeOllamaConfig,
13
13
GenerativeOpenAIConfig,
14
14
GenerativePaLMConfig,
15
+
GenerativeXAIConfig,
15
16
ModuleConfig,
16
17
}from'../config/types/index.js';
17
18
import{
@@ -27,6 +28,7 @@ import {
27
28
GenerativeOllamaConfigCreate,
28
29
GenerativeOpenAIConfigCreate,
29
30
GenerativePaLMConfigCreate,
31
+
GenerativeXAIConfigCreate,
30
32
}from'../index.js';
31
33
32
34
exportdefault{
@@ -263,4 +265,20 @@ export default {
263
265
config,
264
266
};
265
267
},
268
+
/**
269
+
* Create a `ModuleConfig<'generative-xai', GenerativeXAIConfig | undefined>` object for use when performing AI generation using the `generative-xai` module.
270
+
*
271
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/xai/generative) for detailed usage.
272
+
*
273
+
* @param {GenerativeXAIConfigCreate} [config] The configuration for the `generative-xai` module.
274
+
* @returns {ModuleConfig<'generative-xai', GenerativeXAIConfig | undefined>} The configuration object.
* Create a `ModuleConfig<'generative-xai', GenerativeConfigRuntimeType<'generative-xai'> | undefined>` object for use when performing runtime-specific AI generation using the `generative-xai` module.
283
+
*
284
+
* See the [documentation](https://weaviate.io/developers/weaviate/model-providers/xai/generative) for detailed usage.
0 commit comments