mirror of
https://github.com/clearml/clearml-serving
synced 2025-06-26 18:16:00 +00:00
add some sugar
This commit is contained in:
parent
8ecb51f1db
commit
10f887d449
@ -14,7 +14,7 @@ def main(model_name: str):
|
||||
max_tokens=1024,
|
||||
top_p=1.0
|
||||
)
|
||||
print(f"ChatCompletion: \n\n {chat_response.choices[0].message.content}")
|
||||
print(f"\n\nChatCompletion:\n\n {chat_response.choices[0].message.content}")
|
||||
|
||||
comp_response = client.completions.create(
|
||||
model=model_name,
|
||||
@ -22,10 +22,10 @@ def main(model_name: str):
|
||||
temperature=1.0,
|
||||
max_tokens=256
|
||||
)
|
||||
print(f"\n\n Completion: \n\n {comp_response.choices[0].text}")
|
||||
print(f"\n\nCompletion:\n\n {comp_response.choices[0].text}")
|
||||
|
||||
fake_body = {"stream": False, "model": model_name, "prompt": "test"}
|
||||
print(f"Models:\n")
|
||||
print(f"\n\nModels:\n")
|
||||
print('\n\n'.join(map(str, client.models.list(extra_body=fake_body).data)))
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user