You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add chat completion & header instrumentation
* Add message id tests & fix bug
* Add error tracing tests & impl for v1
* Use latest to test instead of <1.0
* Ignore v1 embedding error tests
* Capture _usage_based headers in v0
* Verify all error attrs are asserted
* Use body instead of content
* Handle body being None
Copy file name to clipboardExpand all lines: tests/mlmodel_openai/_mock_external_openai_server.py
+64-2Lines changed: 64 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@
35
35
{
36
36
"content-type": "application/json",
37
37
"openai-model": "gpt-3.5-turbo-0613",
38
-
"openai-organization": "foobar-jtbczk",
38
+
"openai-organization": "new-relic-nkmd8b",
39
39
"openai-processing-ms": "6326",
40
40
"openai-version": "2020-10-01",
41
41
"x-ratelimit-limit-requests": "200",
@@ -60,7 +60,45 @@
60
60
"index": 0,
61
61
"message": {
62
62
"role": "assistant",
63
-
"content": "To convert 212 degrees Fahrenheit to Celsius, you can use the formula:\n\n\u00b0C = (\u00b0F - 32) x 5/9\n\nSubstituting the value, we get:\n\n\u00b0C = (212 - 32) x 5/9\n = 180 x 5/9\n = 100\n\nTherefore, 212 degrees Fahrenheit is equal to 100 degrees Celsius.",
63
+
"content": "212 degrees Fahrenheit is equal to 100 degrees Celsius.",
0 commit comments