Skip to content

Commit c73f02c

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
init
1 parent f3e7419 commit c73f02c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/opengradient/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def infer(model_cid, inference_mode, model_input, max_retries: Optional[int] = N
176176

177177

178178
def llm_completion(
179-
model_cid: LLM,
179+
model: TEE_LLM,
180180
prompt: str,
181181
max_tokens: int = 100,
182182
stop_sequence: Optional[List[str]] = None,
@@ -202,7 +202,7 @@ def llm_completion(
202202
if _client is None:
203203
raise RuntimeError("OpenGradient client not initialized. Call og.init() first.")
204204
return _client.llm_completion(
205-
model_cid=model_cid,
205+
model=model,
206206
prompt=prompt,
207207
max_tokens=max_tokens,
208208
stop_sequence=stop_sequence,
@@ -212,7 +212,7 @@ def llm_completion(
212212

213213

214214
def llm_chat(
215-
model_cid: LLM,
215+
model: TEE_LLM,
216216
messages: List[Dict],
217217
max_tokens: int = 100,
218218
stop_sequence: Optional[List[str]] = None,
@@ -244,7 +244,7 @@ def llm_chat(
244244
if _client is None:
245245
raise RuntimeError("OpenGradient client not initialized. Call og.init() first.")
246246
return _client.llm_chat(
247-
model_cid=model_cid,
247+
model=model,
248248
messages=messages,
249249
max_tokens=max_tokens,
250250
stop_sequence=stop_sequence,

0 commit comments

Comments
 (0)