Skip to content

Commit

Permalink
Update example data to match template language
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization committed Dec 19, 2024
1 parent 72ebcf0 commit e4f65bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/phoenix/server/api/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ async def node(self, id: GlobalID, info: Info[Context, None]) -> Node:
{"role": "system", "content": "You are a helpful assistant"},
{
"role": "user",
"content": "Hello what's the weather in Antarctica like?",
"content": "Hello what's the weather in {{location}} like?",
},
{"role": "ai", "content": "The weather in Antarctica is very cold."},
{"role": "ai", "content": "Looking up the weather in {{location}}..."},
],
},
invocation_parameters={
Expand Down Expand Up @@ -605,7 +605,7 @@ async def node(self, id: GlobalID, info: Info[Context, None]) -> Node:
"messages": [
{
"role": "user",
"content": "Hello what's the weather in Antarctica like?",
"content": "Hello what's the weather in {{location}} like?",
}
],
},
Expand Down
12 changes: 9 additions & 3 deletions src/phoenix/server/api/types/Prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ async def prompt_versions(
"_version": "messages-v1",
"messages": [
{"role": "system", "content": "You are a helpful assistant"},
{"role": "user", "content": "Hello what's the weather in Antarctica like?"},
{"role": "ai", "content": "The weather in Antarctica is very cold."},
{
"role": "user",
"content": "Hello what's the weather in {{location}} like?",
},
{"role": "ai", "content": "Looking up the weather in {{location}}..."},
],
},
invocation_parameters={
Expand Down Expand Up @@ -96,7 +99,10 @@ async def prompt_versions(
template={
"_version": "messages-v1",
"messages": [
{"role": "user", "content": "Hello what's the weather in Antarctica like?"}
{
"role": "user",
"content": "Hello what's the weather in {{location}} like?",
}
],
},
model_name="gpt-4o",
Expand Down

0 comments on commit e4f65bc

Please sign in to comment.