chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:22:34 +08:00
commit 4b22cfda96
9037 changed files with 2363717 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from mlflow.deployments import get_deploy_client
def main():
client = get_deploy_client("http://127.0.0.1:7000")
print(f"Plugin endpoints: {client.list_endpoints()}\n")
print(f"Plugin chat endpoint info: {client.get_endpoint(endpoint='chat')}\n")
# Chat request
response_chat = client.predict(
endpoint="chat",
inputs={
"messages": [
{
"role": "user",
"content": "Tell me a joke",
}
]
},
)
print(f"Plugin response for chat: {response_chat}")
if __name__ == "__main__":
main()