Skip to content

Commit

Permalink
update sparkapi version to v3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pwh-pwh committed Feb 23, 2024
1 parent dce11bc commit aac1517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SparkApiClient(val cmdService: CommandService) {

companion object {
val host = "spark-api.xf-yun.com"
val v3ApiPath = "/v3.1/chat"
val v3ApiPath = "/v3.5/chat"
val json = Json {
ignoreUnknownKeys = true
}
Expand Down Expand Up @@ -154,15 +154,15 @@ fun main() {
),
parameter = Parameter(
chat = Chat(
"generalv3",
"generalv3.5",
)
),
payload = Payload(
message = Message(
text = listOf(
Text(
role = "user",
content = "你好"
content = "介绍你自己和你的模型版本"
)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data class ReqPayload(
),
parameter = Parameter(
chat = Chat(
"generalv3",
"generalv3.5",
)
),
payload = Payload(
Expand Down

0 comments on commit aac1517

Please sign in to comment.