fix(playground): simplify default messages #6211
Annotations
3 errors
Test:
app/src/pages/playground/__tests__/playgroundUtils.test.ts#L121
AssertionError: expected { playgroundInstance: { …(8) }, …(1) } to strictly equal { playgroundInstance: { …(8) }, …(1) }
- Expected
+ Received
Object {
"parsingErrors": Array [
"Unable to parse span attributes, attributes must be valid JSON.",
],
"playgroundInstance": Object {
"activeRunId": null,
"id": 0,
"model": Object {
"invocationParameters": Array [],
"modelName": "gpt-4o",
"provider": "OPENAI",
"supportedInvocationParameters": Array [],
},
"output": undefined,
"spanId": "fake-id",
"template": Object {
"__type": "chat",
"messages": Array [
Object {
- "content": "You are a chatbot",
+ "content": "Welcome to Phoenix Playground!
+
+ You are a helpful assistant.",
"id": 0,
"role": "system",
},
Object {
- "content": "{{question}}",
+ "content": "Answer the question: {{question}}",
"id": 1,
"role": "user",
},
],
},
"toolChoice": "auto",
"tools": Array [],
},
}
❯ pages/playground/__tests__/playgroundUtils.test.ts:121:63
|
Test:
app/src/pages/playground/__tests__/playgroundUtils.test.ts#L142
AssertionError: expected { playgroundInstance: { …(8) }, …(1) } to strictly equal { playgroundInstance: { …(8) }, …(1) }
- Expected
+ Received
Object {
"parsingErrors": Array [
"Unable to parse span input messages, expected messages which include a role and content.",
"Unable to parse span output messages, expected messages which include a role and content.",
"Unable to parse span output expected output.value to be present.",
"Unable to parse model config, expected llm.model_name to be present.",
"Unable to parse model config, expected llm.invocation_parameters json string to be present.",
"Unable to parse invocation parameters response_format, expected llm.invocation_parameters.response_format to be a well formed json object or undefined.",
],
"playgroundInstance": Object {
"activeRunId": null,
"id": 0,
"model": Object {
"invocationParameters": Array [],
"modelName": "gpt-4o",
"provider": "OPENAI",
"supportedInvocationParameters": Array [],
},
"output": undefined,
"spanId": "fake-id",
"template": Object {
"__type": "chat",
"messages": Array [
Object {
- "content": "You are a chatbot",
+ "content": "Welcome to Phoenix Playground!
+
+ You are a helpful assistant.",
"id": 0,
"role": "system",
},
Object {
- "content": "{{question}}",
+ "content": "Answer the question: {{question}}",
"id": 1,
"role": "user",
},
],
},
"toolChoice": "auto",
"tools": Array [],
},
}
❯ pages/playground/__tests__/playgroundUtils.test.ts:142:63
|
Test
Process completed with exit code 1.
|
Loading