Update docs/source/basic_tutorials/consuming_tgi.md

Co-authored-by: Lucain <lucainp@gmail.com>
This commit is contained in:
Vaibhav Srivastav 2024-08-13 19:55:11 +02:00 committed by GitHub
parent 3ba36590c6
commit 4abd7d3971
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,6 @@ client = InferenceClient(model="http://127.0.0.1:8080")
def inference(message, history):
partial_message = ""
output = client.chat.completions.create(
model="tgi",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": message},