fix: new OpenAi api
This commit is contained in:
parent
5e5f21f90e
commit
250752c620
@ -171,12 +171,15 @@ async def eval_rwkv(
|
|||||||
),
|
),
|
||||||
# "response": response,
|
# "response": response,
|
||||||
"model": model.name,
|
"model": model.name,
|
||||||
|
"id": "chatcmpl-123",
|
||||||
|
"system_fingerprint": "fp_44709d6fcb",
|
||||||
"choices": [
|
"choices": [
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
"delta": {"content": delta},
|
"delta": {"role":Role.Assistant.value,"content": delta},
|
||||||
"index": 0,
|
"index": 0,
|
||||||
"finish_reason": None,
|
"finish_reason": None,
|
||||||
|
"logprobs":None
|
||||||
}
|
}
|
||||||
if chat_mode
|
if chat_mode
|
||||||
else {
|
else {
|
||||||
@ -218,11 +221,14 @@ async def eval_rwkv(
|
|||||||
),
|
),
|
||||||
# "response": response,
|
# "response": response,
|
||||||
"model": model.name,
|
"model": model.name,
|
||||||
|
"id": "chatcmpl-123",
|
||||||
|
"system_fingerprint": "fp_44709d6fcb",
|
||||||
"choices": [
|
"choices": [
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
"delta": {},
|
"delta": {},
|
||||||
"index": 0,
|
"index": 0,
|
||||||
|
"logprobs": None,
|
||||||
"finish_reason": "stop",
|
"finish_reason": "stop",
|
||||||
}
|
}
|
||||||
if chat_mode
|
if chat_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user