ehs-llm-client 0.1.7__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ehs-llm-client
3
- Version: 0.1.7
3
+ Version: 0.1.9
4
4
  Summary: Unified LLM client. Currently supports Openai, Azure Openai and Google Gemini
5
5
  Author-email: Andersen Huang <andersen.huang@ehsanalytics.com>
6
6
  License-Expression: MIT
@@ -205,14 +205,14 @@ class LLM:
205
205
  await asyncio.sleep(retry_seconds)
206
206
  retries += 1
207
207
 
208
- def create_batch_request(self, custom_id: str, messages: list[dict[str, str]], schema: dict, reasoning_effort: str | None = None) -> dict:
208
+ def create_batch_request(self, custom_id: str, messages: list[dict[str, str]], schema: dict) -> dict:
209
209
  """
210
210
  Generates a single line for a Batch API JSONL file.
211
211
  Matches the logic of call_async by supporting multi-turn messages and system instructions.
212
212
  """
213
213
  provider = self.provider.lower()
214
- if reasoning_effort is None:
215
- reasoning_effort = self.default_reasoning_effort
214
+ # if reasoning_effort is None:
215
+ # reasoning_effort = self.default_reasoning_effort
216
216
 
217
217
  if schema == "return json":
218
218
  # Enable basic JSON Mode (no strict schema adherence)
@@ -243,8 +243,8 @@ class LLM:
243
243
  "text": text
244
244
  }
245
245
  }
246
- if reasoning_effort:
247
- output["body"]["reasoning"] = {"effort": reasoning_effort}
246
+ # if reasoning_effort:
247
+ # output["body"]["reasoning"] = {"effort": reasoning_effort}
248
248
  return output
249
249
 
250
250
  elif provider == "google":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ehs-llm-client
3
- Version: 0.1.7
3
+ Version: 0.1.9
4
4
  Summary: Unified LLM client. Currently supports Openai, Azure Openai and Google Gemini
5
5
  Author-email: Andersen Huang <andersen.huang@ehsanalytics.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ehs-llm-client"
3
- version = "0.1.7"
3
+ version = "0.1.9"
4
4
  description = "Unified LLM client. Currently supports Openai, Azure Openai and Google Gemini"
5
5
  dependencies = [
6
6
  "openai",
File without changes
File without changes