Skip to content

Commit

Permalink
modify post_args test to new json_payload
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairLR112 committed Jan 3, 2024
1 parent 57d0685 commit 1bf42a4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions integrations/ollama/tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,13 @@ def test__json_payload(self, configuration, prompt):
observed = component._json_payload(prompt=prompt)

expected = {
"url": "https://localhost:11434/api/generate",
"json": {
"prompt": prompt,
"model": configuration["model_name"],
"stream": False,
"system": configuration["system_prompt"],
"raw": configuration["raw"],
"template": configuration["template"],
"options": {},
},
"prompt": prompt,
"model": configuration["model_name"],
"stream": False,
"system": configuration["system_prompt"],
"raw": configuration["raw"],
"template": configuration["template"],
"options": {},
}

assert observed == expected

0 comments on commit 1bf42a4

Please sign in to comment.