Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
7a898e0d
Commit
7a898e0d
authored
Nov 08, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:【变量】方法优化
parent
c59469b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SetValueMemoryFunction.java
...mand/ai/function/value_memory/SetValueMemoryFunction.java
+2
-2
No files found.
src/main/java/cn/com/poc/thirdparty/resource/demand/ai/function/value_memory/SetValueMemoryFunction.java
View file @
7a898e0d
...
...
@@ -70,7 +70,7 @@ public class SetValueMemoryFunction extends AbstractLargeModelFunction {
for
(
Variable
variable
:
variableStructure
)
{
enumList
.
add
(
variable
.
getKey
());
}
contentName
.
put
(
"enum"
,
JsonUtils
.
serialize
(
enumList
)
);
// 设置变量
contentName
.
put
(
"enum"
,
enumList
);
// 设置变量
Map
<
String
,
Object
>
contentValue
=
new
HashMap
<>();
contentValue
.
put
(
"type"
,
"string"
);
contentValue
.
put
(
"description"
,
"内容值"
);
...
...
@@ -80,7 +80,7 @@ public class SetValueMemoryFunction extends AbstractLargeModelFunction {
parameters
.
put
(
"type"
,
"object"
);
function
.
put
(
"name"
,
"set_value_memory"
);
function
.
put
(
"description"
,
"用
enum
给定的内容名来保存用户想记录的内容值"
);
function
.
put
(
"description"
,
"用给定的内容名来保存用户想记录的内容值"
);
function
.
put
(
"parameters"
,
parameters
);
config
.
put
(
"type"
,
"function"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment