Skip to content

Commit

Permalink
move openai json to valid json
Browse files Browse the repository at this point in the history
  • Loading branch information
leondz committed Feb 17, 2025
1 parent f4a644b commit 49a9b17
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions tests/generators/openai.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {"content": "This is a test!", "role": "assistant"},
"message": {"content": "This is a test!", "role": "assistant"}
}
],
"created": 1724052469,
Expand All @@ -22,17 +22,17 @@
"jailbreak": {"filtered": false, "detected": false},
"self_harm": {"filtered": false, "severity": "safe"},
"sexual": {"filtered": false, "severity": "safe"},
"violence": {"filtered": false, "severity": "safe"},
},
"violence": {"filtered": false, "severity": "safe"}
}
}
],
"system_fingerprint": "fp_abc28019ad",
"usage": {
"completion_tokens": 171,
"prompt_tokens": 42,
"total_tokens": 213,
},
},
"total_tokens": 213
}
}
},
"completion": {
"code": 200,
Expand All @@ -47,11 +47,11 @@
"text": "This is indeed a test",
"index": 0,
"logprobs": null,
"finish_reason": "length",
"finish_reason": "length"
}
],
"usage": {"prompt_tokens": 5, "completion_tokens": 7, "total_tokens": 12},
},
"usage": {"prompt_tokens": 5, "completion_tokens": 7, "total_tokens": 12}
}
},
"chat": {
"code": 200,
Expand All @@ -66,10 +66,10 @@
"message": {"role": "assistant", "content": "This is a test!"},
"logprobs": null,
"finish_reason": "stop",
"index": 0,
"index": 0
}
],
},
]
}
},
"auth_fail": {
"code": 401,
Expand All @@ -78,9 +78,9 @@
"message": "Incorrect API key provided: invalid_***_key. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key",
"code": "invalid_api_key"
}
},
}
},
"models": {
"code": 200,
Expand All @@ -91,22 +91,21 @@
"id": "model-id-0",
"object": "model",
"created": 1686935002,
"owned_by": "organization-owner",
"owned_by": "organization-owner"
},
{
"id": "model-id-1",
"object": "model",
"created": 1686935002,
"owned_by": "organization-owner",
"owned_by": "organization-owner"
},
{
"id": "model-id-2",
"object": "model",
"created": 1686935002,
"owned_by": "openai",
},
],
"object": "list",
},
},
"owned_by": "openai"
}
]
}
}
}

0 comments on commit 49a9b17

Please sign in to comment.