mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 13:43:42 +08:00
⚡️ feat: channel support plugin settings (#89)
This commit is contained in:
@@ -10,10 +10,16 @@ type ZhipuWebSearch struct {
|
||||
SearchQuery string `json:"search_query,omitempty"`
|
||||
}
|
||||
|
||||
type ZhipuRetrieval struct {
|
||||
KnowledgeId string `json:"knowledge_id"`
|
||||
PromptTemplate string `json:"prompt_template,omitempty"`
|
||||
}
|
||||
|
||||
type ZhipuTool struct {
|
||||
Type string `json:"type"`
|
||||
Function types.ChatCompletionFunction `json:"function"`
|
||||
WebSearch string `json:"web_search,omitempty"`
|
||||
Type string `json:"type"`
|
||||
Function *types.ChatCompletionFunction `json:"function,omitempty"`
|
||||
WebSearch *ZhipuWebSearch `json:"web_search,omitempty"`
|
||||
Retrieval *ZhipuRetrieval `json:"retrieval,omitempty"`
|
||||
}
|
||||
type ZhipuRequest struct {
|
||||
Model string `json:"model"`
|
||||
|
||||
Reference in New Issue
Block a user