parallex 0.1.4__tar.gz → 0.2.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {parallex-0.1.4 → parallex-0.2.0}/PKG-INFO +5 -5
- {parallex-0.1.4 → parallex-0.2.0}/README.md +4 -4
- {parallex-0.1.4 → parallex-0.2.0}/parallex/ai/open_ai_client.py +3 -3
- {parallex-0.1.4 → parallex-0.2.0}/parallex/ai/uploader.py +1 -1
- {parallex-0.1.4 → parallex-0.2.0}/pyproject.toml +1 -1
- {parallex-0.1.4 → parallex-0.2.0}/LICENSE +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/__init__.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/ai/batch_processor.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/ai/output_processor.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/file_management/converter.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/file_management/file_finder.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/file_management/remote_file_handler.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/file_management/utils.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/models/batch_file.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/models/image_file.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/models/page_response.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/models/parallex_callable_output.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/models/raw_file.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/models/upload_batch.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/parallex.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/utils/constants.py +0 -0
- {parallex-0.1.4 → parallex-0.2.0}/parallex/utils/logger.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: parallex
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
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
|
@@ -45,10 +45,10 @@ import os
|
|
45
45
|
from parallex.models.parallex_callable_output import ParallexCallableOutput
|
46
46
|
from parallex.parallex import parallex
|
47
47
|
|
48
|
-
os.environ["
|
49
|
-
os.environ["
|
50
|
-
os.environ["
|
51
|
-
os.environ["
|
48
|
+
os.environ["AZURE_API_KEY"] = "key"
|
49
|
+
os.environ["AZURE_API_BASE"] = "your-endpoint.com"
|
50
|
+
os.environ["AZURE_API_VERSION"] = "deployment_version"
|
51
|
+
os.environ["AZURE_API_DEPLOYMENT"] = "deployment_name"
|
52
52
|
|
53
53
|
model = "gpt-4o"
|
54
54
|
|
@@ -25,10 +25,10 @@ import os
|
|
25
25
|
from parallex.models.parallex_callable_output import ParallexCallableOutput
|
26
26
|
from parallex.parallex import parallex
|
27
27
|
|
28
|
-
os.environ["
|
29
|
-
os.environ["
|
30
|
-
os.environ["
|
31
|
-
os.environ["
|
28
|
+
os.environ["AZURE_API_KEY"] = "key"
|
29
|
+
os.environ["AZURE_API_BASE"] = "your-endpoint.com"
|
30
|
+
os.environ["AZURE_API_VERSION"] = "deployment_version"
|
31
|
+
os.environ["AZURE_API_DEPLOYMENT"] = "deployment_name"
|
32
32
|
|
33
33
|
model = "gpt-4o"
|
34
34
|
|
@@ -15,9 +15,9 @@ class OpenAIClient:
|
|
15
15
|
self.file_handler = remote_file_handler
|
16
16
|
|
17
17
|
self._client = AsyncAzureOpenAI(
|
18
|
-
azure_endpoint=os.getenv("
|
19
|
-
api_key=os.getenv("
|
20
|
-
api_version=os.getenv("
|
18
|
+
azure_endpoint=os.getenv("AZURE_API_BASE"),
|
19
|
+
api_key=os.getenv("AZURE_API_KEY"),
|
20
|
+
api_version=os.getenv("AZURE_API_VERSION"),
|
21
21
|
)
|
22
22
|
|
23
23
|
async def upload(self, file_path: str) -> FileObject:
|
@@ -71,7 +71,7 @@ def _jsonl_format(prompt_custom_id: str, encoded_image: str, prompt_text: str):
|
|
71
71
|
"method": "POST",
|
72
72
|
"url": "/chat/completions",
|
73
73
|
"body": {
|
74
|
-
"model": os.getenv("
|
74
|
+
"model": os.getenv("AZURE_API_DEPLOYMENT"),
|
75
75
|
"messages": [
|
76
76
|
{
|
77
77
|
"role": "user",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "parallex"
|
3
|
-
version = "0.
|
3
|
+
version = "0.2.0"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|