MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / set_model

Method set_model

demos/chatgpt.py:60–62  ·  view source on GitHub ↗

Set the model to use

(self, model: str)

Source from the content-addressed store, hash-verified

58 self.latest_nonstream_finish_reason = None
59
60 def set_model(self, model: str):
61 """Set the model to use"""
62 self.model_kwargs['model'] = model
63
64 def _ask(self, message: str, stream=True, **model_kwargs):
65 if self.pending_stream_reply:

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected