http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-connect-ai-azure
/
org.http4k.connect.azure.action
/
Completion
Completion
@
JsonSerializable
data
class
Completion
(
val
prompt
:
UserPrompt
,
val
presence_penalty
:
Double
=
0.0
,
val
frequency_penalty
:
Double
=
0.0
,
val
temperature
:
Temperature
=
Temperature.ONE
,
val
stream
:
Boolean
=
false
,
val
max_tokens
:
MaxTokens
?
=
null
,
val
seed
:
Int
?
=
null
,
val
stop
:
List
<
String
>
?
=
null
,
val
n
:
Int
?
=
null
,
val
top_p
:
Double
=
1.0
)
:
ModelCompletion
(
source
)
Members
Constructors
Completion
Link copied to clipboard
constructor
(
prompt
:
UserPrompt
,
presence_penalty
:
Double
=
0.0
,
frequency_penalty
:
Double
=
0.0
,
temperature
:
Temperature
=
Temperature.ONE
,
stream
:
Boolean
=
false
,
max_tokens
:
MaxTokens
?
=
null
,
seed
:
Int
?
=
null
,
stop
:
List
<
String
>
?
=
null
,
n
:
Int
?
=
null
,
top_p
:
Double
=
1.0
)
constructor
(
prompt
:
UserPrompt
,
max_tokens
:
MaxTokens
,
stream
:
Boolean
=
true
)
Properties
frequency_
penalty
Link copied to clipboard
val
frequency_penalty
:
Double
max_
tokens
Link copied to clipboard
val
max_tokens
:
MaxTokens
?
n
Link copied to clipboard
val
n
:
Int
?
presence_
penalty
Link copied to clipboard
val
presence_penalty
:
Double
prompt
Link copied to clipboard
val
prompt
:
UserPrompt
seed
Link copied to clipboard
val
seed
:
Int
?
stop
Link copied to clipboard
val
stop
:
List
<
String
>
?
stream
Link copied to clipboard
open
override
val
stream
:
Boolean
temperature
Link copied to clipboard
val
temperature
:
Temperature
top_
p
Link copied to clipboard
val
top_p
:
Double
Functions
content
Link copied to clipboard
open
override
fun
content
(
)
:
List
<
Message
>
to
Request
Link copied to clipboard
open
override
fun
toRequest
(
)
:
Request
to
Result
Link copied to clipboard
open
override
fun
toResult
(
response
:
Response
)
:
Result
<
Sequence
<
CompletionResponse
>
,
RemoteFailure
>