-
Notifications
You must be signed in to change notification settings - Fork 688
[WIP TC]: Tool call impl #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: PolarishT <zhangzhenting@corp.netease.com>
Signed-off-by: PolarishT <zhangzhenting@corp.netease.com>
Signed-off-by: PolarishT <zhangzhenting@corp.netease.com>
...e/backend/src/main/java/com/alibaba/cloud/ai/application/SpringAIIntegrationApplication.java
Outdated
Show resolved
Hide resolved
...backend/src/main/java/com/alibaba/cloud/ai/application/controller/SAAFunctionController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 .keep 不要删,是为了保持这个文件夹,github 默认不会保存空的文件夹再 github
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
学到了,我以为是我使用的XcodeMap引入的奇奇怪怪的东西
</dependencies> | ||
|
||
<build> | ||
<finalName>app.jar</finalName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里加这个是?
@@ -35,8 +48,38 @@ public class SAAFunctionController { | |||
|
|||
private final SAAFunctionService functionService; | |||
|
|||
public SAAFunctionController(SAAFunctionService functionService) { | |||
private final SAABaseService baseService; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注入这个似乎用不到?注入 function service 就好了
@UserIp | ||
@GetMapping("tool-call") | ||
@Operation(summary = "DashScope ToolCall Chat") | ||
public Flux<Result<String>> chat( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里改成 Flux 就好了,Result jianyi 不好解析
|
||
this.defaultChatClient = | ||
ChatClient.builder(new DashScopeChatModel(new DashScopeApi(System.getenv( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为啥要这样写哇?chatmodel autoconfiguration 会自己注入的,你这是用 ai 写的吗?ai 的代码质量堪忧哇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我自己写的哇
我习惯这样写了 哈哈哈哈
What does this PR do?