parallex 0.3.2__tar.gz → 0.3.4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. {parallex-0.3.2 → parallex-0.3.4}/PKG-INFO +1 -1
  2. {parallex-0.3.2 → parallex-0.3.4}/parallex/ai/open_ai_client.py +0 -1
  3. {parallex-0.3.2 → parallex-0.3.4}/parallex/ai/uploader.py +1 -0
  4. {parallex-0.3.2 → parallex-0.3.4}/parallex/parallex.py +1 -1
  5. {parallex-0.3.2 → parallex-0.3.4}/pyproject.toml +1 -1
  6. {parallex-0.3.2 → parallex-0.3.4}/LICENSE +0 -0
  7. {parallex-0.3.2 → parallex-0.3.4}/README.md +0 -0
  8. {parallex-0.3.2 → parallex-0.3.4}/parallex/__init__.py +0 -0
  9. {parallex-0.3.2 → parallex-0.3.4}/parallex/ai/batch_processor.py +0 -0
  10. {parallex-0.3.2 → parallex-0.3.4}/parallex/ai/output_processor.py +0 -0
  11. {parallex-0.3.2 → parallex-0.3.4}/parallex/file_management/converter.py +0 -0
  12. {parallex-0.3.2 → parallex-0.3.4}/parallex/file_management/file_finder.py +0 -0
  13. {parallex-0.3.2 → parallex-0.3.4}/parallex/file_management/remote_file_handler.py +0 -0
  14. {parallex-0.3.2 → parallex-0.3.4}/parallex/file_management/utils.py +0 -0
  15. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/batch_file.py +0 -0
  16. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/image_file.py +0 -0
  17. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/page_response.py +0 -0
  18. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/parallex_callable_output.py +0 -0
  19. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/parallex_prompts_callable_output.py +0 -0
  20. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/prompt_response.py +0 -0
  21. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/raw_file.py +0 -0
  22. {parallex-0.3.2 → parallex-0.3.4}/parallex/models/upload_batch.py +0 -0
  23. {parallex-0.3.2 → parallex-0.3.4}/parallex/utils/constants.py +0 -0
  24. {parallex-0.3.2 → parallex-0.3.4}/parallex/utils/logger.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: parallex
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: PDF to markdown using Azure OpenAI batch processing
5
5
  Home-page: https://github.com/Summed-AI/parallex
6
6
  Author: Jeff Hostetler
@@ -18,7 +18,6 @@ class OpenAIClient:
18
18
  azure_endpoint=os.getenv("AZURE_API_BASE"),
19
19
  api_key=os.getenv("AZURE_API_KEY"),
20
20
  api_version=os.getenv("AZURE_API_VERSION"),
21
- timeout=3000,
22
21
  )
23
22
 
24
23
  async def upload(self, file_path: str) -> FileObject:
@@ -127,6 +127,7 @@ def _simple_jsonl_format(prompt_custom_id: str, prompt_text: str) -> dict:
127
127
  "body": {
128
128
  "model": os.getenv("AZURE_API_DEPLOYMENT"),
129
129
  "messages": [{"role": "user", "content": prompt_text}],
130
+ "temperature": 0.0, # TODO make configurable
130
131
  },
131
132
  }
132
133
 
@@ -110,7 +110,7 @@ async def _prompts_execute(
110
110
  f"waiting for batch to complete - {batch.id} - {batch.trace_id}"
111
111
  )
112
112
  prompt_task = asyncio.create_task(
113
- await _wait_and_create_prompt_responses(batch=batch, client=open_ai_client, semaphore=process_semaphore)
113
+ _wait_and_create_prompt_responses(batch=batch, client=open_ai_client, semaphore=process_semaphore)
114
114
  )
115
115
  prompt_tasks.append(prompt_task)
116
116
  prompt_response_groups = await asyncio.gather(*prompt_tasks)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "parallex"
3
- version = "0.3.2"
3
+ version = "0.3.4"
4
4
  description = "PDF to markdown using Azure OpenAI batch processing"
5
5
  authors = ["Jeff Hostetler <jeff@summed.ai>", "Kevin Bao <kevin@summed.ai>"]
6
6
  repository = "https://github.com/Summed-AI/parallex"
File without changes
File without changes
File without changes