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

Method __init__

fastchat/serve/gradio_web_server.py:96–100  ·  view source on GitHub ↗
(self, model_name)

Source from the content-addressed store, hash-verified

94
95class State:
96 def __init__(self, model_name):
97 self.conv = get_conversation_template(model_name)
98 self.conv_id = uuid.uuid4().hex
99 self.skip_next = False
100 self.model_name = model_name
101
102 def to_gradio_chatbot(self):
103 return self.conv.to_gradio_chatbot()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected