MCPcopy Create free account
hub / github.com/TencentQQGYLab/AppAgent / __init__

Method __init__

scripts/model.py:22–28  ·  view source on GitHub ↗
(self, base_url: str, api_key: str, model: str, temperature: float, max_tokens: int)

Source from the content-addressed store, hash-verified

20
21class OpenAIModel(BaseModel):
22 def __init__(self, base_url: str, api_key: str, model: str, temperature: float, max_tokens: int):
23 super().__init__()
24 self.base_url = base_url
25 self.api_key = api_key
26 self.model = model
27 self.temperature = temperature
28 self.max_tokens = max_tokens
29
30 def get_model_response(self, prompt: str, images: List[str]) -> (bool, str):
31 content = [

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected