mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Update docs/source/basic_tutorials/consuming_tgi.md
Co-authored-by: Lucain <lucainp@gmail.com>
This commit is contained in:
parent
3ba36590c6
commit
4abd7d3971
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user