huggingface / huggingface/agents-course
[HANDS-ON BUG]Dummy Agent Library page: wrong output for example code
- Dominant language
- MDX
- Stars
- 32.6k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
On the Dummy agent page (file: **/blob/main/units/en/unit1/dummy-agent-library.mdx**) the example code gives a different output than the document says it does.
**To reproduce the error:**
```
prompt="""<|begin_of_text|><|start_header_id|>user<|end_header_id|>
The capital of France is<|eot_id|><|start_header_id|>assistant<|end_header_id|>"""
output = client.text_generation(
prompt,
max_new_tokens=100,
)
print(output)
```
should give this output:
`The capital of France is Paris.`
But when you run the actual code your self, it gives:
`...Paris!`
**To Reproduce:**
Just run the example code.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.