parallex 0.1.4__py3-none-any.whl → 0.2.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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("AZURE_OPENAI_ENDPOINT"),
19
- api_key=os.getenv("AZURE_OPENAI_API_KEY"),
20
- api_version=os.getenv("AZURE_OPENAI_API_VERSION"),
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:
parallex/ai/uploader.py CHANGED
@@ -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("AZURE_OPENAI_API_DEPLOYMENT"),
74
+ "model": os.getenv("AZURE_API_DEPLOYMENT"),
75
75
  "messages": [
76
76
  {
77
77
  "role": "user",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: parallex
3
- Version: 0.1.4
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["AZURE_OPENAI_API_KEY"] = "key"
49
- os.environ["AZURE_OPENAI_ENDPOINT"] = "your-endpoint.com"
50
- os.environ["AZURE_OPENAI_API_VERSION"] = "deployment_version"
51
- os.environ["AZURE_OPENAI_API_DEPLOYMENT"] = "deployment_name"
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
 
@@ -1,8 +1,8 @@
1
1
  parallex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  parallex/ai/batch_processor.py,sha256=O5q_jaIU0VI93p7Riq4aZ_qUiN9Omxp5GOfn0IqEYgo,1361
3
- parallex/ai/open_ai_client.py,sha256=UOb7tOCGCTVlA5Yj8eqOmuZKpOO4ioUw6GKbPY9zZwQ,2068
3
+ parallex/ai/open_ai_client.py,sha256=TRH78oYod_EWpp3hjEh097OT7hwsQmtv44_j3X9Frxo,2047
4
4
  parallex/ai/output_processor.py,sha256=P6ak7cblRHnsR1W7oEtbOGM7zd7tzZbRKigixQaXWyw,966
5
- parallex/ai/uploader.py,sha256=Vt7hF7dm-meimH6hVXbc3IZ2B7WPjWDMwoGiQQSB31Q,3181
5
+ parallex/ai/uploader.py,sha256=92P0LxLuRgtjtD4kLtM0n8WUww_8-GImLxb3pbl-kkg,3174
6
6
  parallex/file_management/converter.py,sha256=Rj-93LXNl2gCY-XUOCZv7DdCNI2-GyRpS5FobnTqwzo,1111
7
7
  parallex/file_management/file_finder.py,sha256=BPvrkxZlwOYmRXzzS138wGTsVzuhDIKfQZn0CISUj3o,1598
8
8
  parallex/file_management/remote_file_handler.py,sha256=jsI9NhOrKQR8K3yo536lGplVBGis9XY0G4dRpumgWFM,213
@@ -16,7 +16,7 @@ parallex/models/upload_batch.py,sha256=jrnds9ryXg9drL4TF8TGimMVTCDfKaWsBzFv_ed0i
16
16
  parallex/parallex.py,sha256=EkD_kZevDu0UBpRet3nsvIr826f7uBHiT0JA5hR3E8c,5117
17
17
  parallex/utils/constants.py,sha256=c6i_-OSfCXAzW9ILzddSSHfldqHnsPEID3G3VYGYXUg,362
18
18
  parallex/utils/logger.py,sha256=i3ZZ7YTUmhUStbvVME67F9ffnkLOv5ijm7wVUyJT8Ys,440
19
- parallex-0.1.4.dist-info/LICENSE,sha256=wPwCqGrisXnEcpaUxSO79C2mdOUTbtjhLjyy8mVW6p8,1046
20
- parallex-0.1.4.dist-info/METADATA,sha256=x3dPVyDeYjMN0254jputI8-Tr7ruesZXSRc2_Yc--ik,3444
21
- parallex-0.1.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
- parallex-0.1.4.dist-info/RECORD,,
19
+ parallex-0.2.0.dist-info/LICENSE,sha256=wPwCqGrisXnEcpaUxSO79C2mdOUTbtjhLjyy8mVW6p8,1046
20
+ parallex-0.2.0.dist-info/METADATA,sha256=Aq2RRlLwkXcLZ_wNXLZAsydFYJqTSe47eVhAq78oja8,3416
21
+ parallex-0.2.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
+ parallex-0.2.0.dist-info/RECORD,,