MCPcopy Create free account
hub / github.com/Nativu5/Gemini-FastAPI / ServerConfig

Class ServerConfig

app/utils/config.py:27–36  ·  view source on GitHub ↗

Server configuration

Source from the content-addressed store, hash-verified

25
26
27class ServerConfig(BaseModel):
28 """Server configuration"""
29
30 host: str = Field(default="0.0.0.0", description="Server host address")
31 port: int = Field(default=8000, ge=1, le=65535, description="Server port number")
32 api_key: str | None = Field(
33 default=None,
34 description="API key for authentication, if set, will enable API key validation",
35 )
36 https: HTTPSConfig = Field(default=HTTPSConfig(), description="HTTPS configuration")
37
38
39class GeminiClientSettings(BaseModel):

Callers 1

ConfigClass · 0.85

Calls 1

HTTPSConfigClass · 0.85

Tested by

no test coverage detected