增加流式功能
This commit is contained in:
@@ -96,7 +96,7 @@ class LmStudio(Platform):
|
||||
|
||||
def __init__(self, config: BaseProxyConfig, http: ClientSession) -> None:
|
||||
super().__init__(config, http)
|
||||
self.temperature = self.config['temperature']
|
||||
self.temperature = float(self.config['temperature']) if self.config.get('temperature') is not None else None
|
||||
self.streaming = self.config.get('streaming', False)
|
||||
|
||||
def is_streaming_enabled(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user