fix: remove inference.completion from docs

This commit is contained in:
Matthew Farrellee 2025-09-28 07:30:19 -04:00
parent 65f7b81e98
commit e1b750e4e1
6 changed files with 26 additions and 64 deletions

View file

@ -140,13 +140,11 @@ client.models.register(
#### 2. Inference with the fine-tuned model
```python
response = client.inference.completion(
content="Complete the sentence using one word: Roses are red, violets are ",
response = client.completions.create(
prompt="Complete the sentence using one word: Roses are red, violets are ",
stream=False,
model_id="test-example-model@v1",
sampling_params={
"max_tokens": 50,
},
model="test-example-model@v1",
max_tokens=50,
)
print(response.content)
print(response.choices[0].text)
```