-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,25 @@ spec: | |
openAPIV3Schema: | ||
type: object | ||
example: | ||
enable: true | ||
# attributes: | ||
# - key: consumer # 配合认证鉴权记录consumer | ||
# value_source: request_header | ||
# value: x-mse-consumer | ||
# apply_to_log: true # 是否将信息添加到日志中 | ||
# apply_to_span: false # 是否将信息添加到链路追踪span attribute中 | ||
# - key: question # 记录问题 | ||
# value_source: request_body | ||
# value: [email protected] | ||
# apply_to_log: true | ||
# apply_to_span: false | ||
# - key: answer # 在流式响应中提取大模型的回答 | ||
# value_source: response_streaming_body | ||
# value: choices.0.delta.content | ||
# rule: append | ||
# apply_to_log: true | ||
# apply_to_span: false | ||
# - key: answer # 在非流式响应中提取大模型的回答 | ||
# value_source: response_body | ||
# value: choices.0.message.content | ||
# apply_to_log: true | ||
# apply_to_span: false |