update
This commit is contained in:
@@ -26,7 +26,7 @@ using ..type
|
||||
```
|
||||
"""
|
||||
function sendReceivePrompt(a::T, prompt::String; max_tokens=256, timeout::Int=120,
|
||||
temperature::AbstractFloat=0.2, stopword=[]) where {T<:agent}
|
||||
temperature::AbstractFloat=0.2, stopword=[], seed=nothing) where {T<:agent}
|
||||
a.msgMeta[:msgId] = "$(uuid4())" # new msg id for each msg
|
||||
msg = Dict(
|
||||
:msgMeta=> a.msgMeta,
|
||||
@@ -34,6 +34,7 @@ function sendReceivePrompt(a::T, prompt::String; max_tokens=256, timeout::Int=12
|
||||
:max_tokens=> max_tokens,
|
||||
:temperature=> temperature,
|
||||
:stopword=> stopword,
|
||||
:seed=> seed,
|
||||
)
|
||||
payloadChannel = Channel(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user