euriai 0.3.23__py3-none-any.whl → 0.3.24__py3-none-any.whl
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.
- euriai/__init__.py +1 -1
- euriai/euri_chat.py +3 -3
- euriai/euri_embed.py +2 -2
- {euriai-0.3.23.dist-info → euriai-0.3.24.dist-info}/METADATA +2 -2
- euriai-0.3.24.dist-info/RECORD +13 -0
- euriai-0.3.23.dist-info/RECORD +0 -13
- {euriai-0.3.23.dist-info → euriai-0.3.24.dist-info}/WHEEL +0 -0
- {euriai-0.3.23.dist-info → euriai-0.3.24.dist-info}/entry_points.txt +0 -0
- {euriai-0.3.23.dist-info → euriai-0.3.24.dist-info}/top_level.txt +0 -0
euriai/__init__.py
CHANGED
euriai/euri_chat.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import requests
|
2
2
|
from typing import List, Optional
|
3
3
|
from llama_index.core.llms import LLM
|
4
|
-
from llama_index.core.
|
4
|
+
from llama_index.core.llms.base import ChatMessage, CompletionResponse, CompletionResponseGen
|
5
5
|
|
6
6
|
|
7
7
|
class EuriaiLlamaIndexLLM(LLM):
|
@@ -9,7 +9,7 @@ class EuriaiLlamaIndexLLM(LLM):
|
|
9
9
|
model: str = "gpt-4.1-nano"
|
10
10
|
temperature: float = 0.7
|
11
11
|
max_tokens: int = 1000
|
12
|
-
url: str = "https://api.euron.one/api/v1/chat/completions"
|
12
|
+
url: str = "https://api.euron.one/api/v1/euri/alpha/chat/completions" # Updated to match client.py
|
13
13
|
|
14
14
|
def __init__(
|
15
15
|
self,
|
@@ -72,4 +72,4 @@ class EuriaiLlamaIndexLLM(LLM):
|
|
72
72
|
raise NotImplementedError("Async streaming not supported.")
|
73
73
|
|
74
74
|
async def astream_complete(self, prompt: str, **kwargs) -> CompletionResponseGen:
|
75
|
-
raise NotImplementedError("Async streaming not supported.")
|
75
|
+
raise NotImplementedError("Async streaming not supported.")
|
euriai/euri_embed.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import requests
|
2
2
|
import numpy as np
|
3
|
-
from llama_index.embeddings.base import BaseEmbedding
|
3
|
+
from llama_index.core.embeddings.base import BaseEmbedding
|
4
4
|
|
5
5
|
class EuriaiLlamaIndexEmbedding(BaseEmbedding):
|
6
6
|
def __init__(self, api_key: str, model: str = "text-embedding-3-small"):
|
@@ -25,4 +25,4 @@ class EuriaiLlamaIndexEmbedding(BaseEmbedding):
|
|
25
25
|
return self._post_embedding([text])[0]
|
26
26
|
|
27
27
|
def get_text_embeddings(self, texts: list[str]) -> list[list[float]]:
|
28
|
-
return self._post_embedding(texts)
|
28
|
+
return self._post_embedding(texts)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: euriai
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.24
|
4
4
|
Summary: Python client for EURI LLM API (euron.one) with CLI, LangChain, and LlamaIndex integration
|
5
5
|
Author: euron.one
|
6
6
|
Author-email: sudhanshu@euron.one
|
@@ -13,7 +13,7 @@ Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
14
14
|
Requires-Dist: requests
|
15
15
|
Requires-Dist: langchain-core
|
16
|
-
Requires-Dist: llama-index
|
16
|
+
Requires-Dist: llama-index>=0.10.0
|
17
17
|
Requires-Dist: numpy
|
18
18
|
Dynamic: author
|
19
19
|
Dynamic: author-email
|
@@ -0,0 +1,13 @@
|
|
1
|
+
euriai/__init__.py,sha256=8YhbRV8s4wmNxDP9KmjOxQYLgKUCke450vnp-8-kPKs,449
|
2
|
+
euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
3
|
+
euriai/client.py,sha256=USiqdMULgAiky7nkrJKF3FyKcOS2DtDmUdbeBSnyLYk,4076
|
4
|
+
euriai/embedding.py,sha256=z-LLKU68tCrPi9QMs1tlKwyr7WJcjceCTkNQIFMG6vA,1276
|
5
|
+
euriai/euri_chat.py,sha256=nqrZ88_ix9n_Bkh6BWUOf0fyLp-TNdUSd4dRFFtRuVY,2986
|
6
|
+
euriai/euri_embed.py,sha256=a-KaWPmpnqXn3tqJFo2bZyno07AL2Z-_RPXKdI-oCIQ,1061
|
7
|
+
euriai/langchain_embed.py,sha256=OXWWxiKJ4g24TFgnWPOCZvhK7G8xtSf0ppQ2zwHkIPM,584
|
8
|
+
euriai/langchain_llm.py,sha256=D5YvYwV7q9X2_vdoaQiPs7tNiUmjkGz-9Q-7M61hhkg,986
|
9
|
+
euriai-0.3.24.dist-info/METADATA,sha256=_YgxDGogG64CGwqLhL5CRButnocaIJ-2i8V8nM4vMPk,3249
|
10
|
+
euriai-0.3.24.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
11
|
+
euriai-0.3.24.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
12
|
+
euriai-0.3.24.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
13
|
+
euriai-0.3.24.dist-info/RECORD,,
|
euriai-0.3.23.dist-info/RECORD
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
euriai/__init__.py,sha256=5-cq-SMzQCkXKnucNSaVseFniiVCYZhQdh9Ez7-Gd04,451
|
2
|
-
euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
3
|
-
euriai/client.py,sha256=USiqdMULgAiky7nkrJKF3FyKcOS2DtDmUdbeBSnyLYk,4076
|
4
|
-
euriai/embedding.py,sha256=z-LLKU68tCrPi9QMs1tlKwyr7WJcjceCTkNQIFMG6vA,1276
|
5
|
-
euriai/euri_chat.py,sha256=Uw0rg-nriuZHUSdaO39qu0ub_M4ExEVK5Xyh83g8sYU,2953
|
6
|
-
euriai/euri_embed.py,sha256=HtbjbCBvKka77hpHPlTI1pX28uUL9L3eKbT69rkt4i8,1058
|
7
|
-
euriai/langchain_embed.py,sha256=OXWWxiKJ4g24TFgnWPOCZvhK7G8xtSf0ppQ2zwHkIPM,584
|
8
|
-
euriai/langchain_llm.py,sha256=D5YvYwV7q9X2_vdoaQiPs7tNiUmjkGz-9Q-7M61hhkg,986
|
9
|
-
euriai-0.3.23.dist-info/METADATA,sha256=oMep8lAxPSwjPAimZwRNtUx2spBHdWdC2HVgGZMBFK4,3257
|
10
|
-
euriai-0.3.23.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
11
|
-
euriai-0.3.23.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
12
|
-
euriai-0.3.23.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
13
|
-
euriai-0.3.23.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|