@aj-archipelago/cortex 1.1.30 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/graphql.js +1 -0
- package/server/typeDef.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-archipelago/cortex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
4
4
|
"description": "Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
package/server/graphql.js
CHANGED
package/server/typeDef.js
CHANGED
|
@@ -36,8 +36,8 @@ const typeDef = (pathway) => {
|
|
|
36
36
|
|
|
37
37
|
const typeName = fields ? `${objName}Result` : `String`;
|
|
38
38
|
|
|
39
|
-
const messageType = `input Message { role: String, content: String }`;
|
|
40
|
-
const multiMessageType = `input MultiMessage { role: String, content: [String] }`;
|
|
39
|
+
const messageType = `input Message { role: String, content: String, name: String }`;
|
|
40
|
+
const multiMessageType = `input MultiMessage { role: String, content: [String], name: String }`;
|
|
41
41
|
|
|
42
42
|
const type = fields ? `type ${typeName} {
|
|
43
43
|
${fieldsStr}
|