MCPcopy
hub / github.com/lm-sys/FastChat / get_conv

Function get_conv

fastchat/serve/openai_api_server.py:388–395  ·  view source on GitHub ↗
(model_name: str, worker_addr: str)

Source from the content-addressed store, hash-verified

386
387
388async def get_conv(model_name: str, worker_addr: str):
389 conv_template = conv_template_map.get((worker_addr, model_name))
390 if conv_template is None:
391 conv_template = await fetch_remote(
392 worker_addr + "/worker_get_conv_template", {"model": model_name}, "conv"
393 )
394 conv_template_map[(worker_addr, model_name)] = conv_template
395 return conv_template
396
397
398@app.get("/v1/models", dependencies=[Depends(check_api_key)])

Callers 1

get_gen_paramsFunction · 0.85

Calls 1

fetch_remoteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…