fix: retryLLM return empty (#1264)
This commit is contained in:
parent
2c3952b8c0
commit
ba4b702675
1 changed files with 1 additions and 4 deletions
|
|
@ -1495,7 +1495,6 @@ func (al *AgentLoop) summarizeSession(agent *AgentInstance, sessionKey string) {
|
|||
const (
|
||||
maxSummarizationMessages = 10
|
||||
llmMaxRetries = 3
|
||||
llmMaxTokens = 1024
|
||||
llmTemperature = 0.3
|
||||
fallbackMaxContentLength = 200
|
||||
)
|
||||
|
|
@ -1573,7 +1572,6 @@ func (al *AgentLoop) retryLLMCall(
|
|||
maxRetries int,
|
||||
) (*providers.LLMResponse, error) {
|
||||
const (
|
||||
llmMaxTokens = 1024
|
||||
llmTemperature = 0.3
|
||||
)
|
||||
|
||||
|
|
@ -1587,7 +1585,7 @@ func (al *AgentLoop) retryLLMCall(
|
|||
nil,
|
||||
agent.Model,
|
||||
map[string]any{
|
||||
"max_tokens": llmMaxTokens,
|
||||
"max_tokens": agent.MaxTokens,
|
||||
"temperature": llmTemperature,
|
||||
"prompt_cache_key": agent.ID,
|
||||
},
|
||||
|
|
@ -1612,7 +1610,6 @@ func (al *AgentLoop) summarizeBatch(
|
|||
) (string, error) {
|
||||
const (
|
||||
llmMaxRetries = 3
|
||||
llmMaxTokens = 1024
|
||||
llmTemperature = 0.3
|
||||
fallbackMinContentLength = 200
|
||||
fallbackMaxContentPercent = 10
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue