Spaces:
Running
Running
:zap: [Enhance] Update available models description
Browse files23 unmodified lines24252627282930313233343536373839404122 unmodified lines6465666768697023 unmodified linesself.setup_routes()def get_available_models(self):self.available_models = [{"id": "mixtral-8x7b","description": "[Mixtral-8x7B-Instruct-v0.1]: https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1",},{"id": "mistral-7b","description": "[Mistral-7B-Instruct-v0.2]: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2",},{"id": "openchat-3.5","description": "[openchat_3.5]: https://huggingface.co/openchat/openchat_3.5",},]return self.available_models22 unmodified linesdescription="(float) Temperature",)max_tokens: int = Field(default=8192,description="(int) Max tokens",)stream: bool = Field(23 unmodified lines2425262728293031323334353637383940414222 unmodified lines6566676869707123 unmodified linesself.setup_routes()def get_available_models(self):# ANCHOR[id=available-models]: Available modelsself.available_models = [{"id": "mixtral-8x7b","description": "[mistralai/Mixtral-8x7B-Instruct-v0.1]: https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1",},{"id": "mistral-7b","description": "[mistralai/Mistral-7B-Instruct-v0.2]: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2",},{"id": "openchat-3.5","description": "[openchat/openchat-3.5-1210]: https://huggingface.co/openchat/openchat-3.5-1210",},]return self.available_models22 unmodified linesdescription="(float) Temperature",)max_tokens: int = Field(default=4096,description="(int) Max tokens",)stream: bool = Field(
apis/chat_api.py+5-4