Method
__init__
(self, base_url: str, api_key: str, model: str, temperature: float, max_tokens: int)
Source from the content-addressed store, hash-verified
| 20 | |
| 21 | class 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
Tested by
no test coverage detected