MCPcopy Create free account
hub / github.com/nat/openplayground / is_valid_request_data

Function is_valid_request_data

server/lib/api/inference.py:48–49  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

46 return stream_response(global_state, request_uuid)
47
48def is_valid_request_data(data):
49 return isinstance(data['prompt'], str) and isinstance(data['models'], list)
50
51def create_inference_request(model, storage, prompt, request_uuid):
52 model_name, provider_name, model_tag, parameters = extract_model_data(model)

Callers 1

stream_inferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected