euriai 0.3.2__py3-none-any.whl → 0.3.3__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/langchain_llm.py +5 -8
- {euriai-0.3.2.dist-info → euriai-0.3.3.dist-info}/METADATA +1 -1
- euriai-0.3.3.dist-info/RECORD +9 -0
- euriai-0.3.2.dist-info/RECORD +0 -9
- {euriai-0.3.2.dist-info → euriai-0.3.3.dist-info}/WHEEL +0 -0
- {euriai-0.3.2.dist-info → euriai-0.3.3.dist-info}/entry_points.txt +0 -0
- {euriai-0.3.2.dist-info → euriai-0.3.3.dist-info}/top_level.txt +0 -0
euriai/langchain_llm.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
from
|
1
|
+
from langchain.llms.base import LLM
|
2
2
|
from typing import Optional, List
|
3
|
-
from
|
4
|
-
from .client import EuriaiClient
|
3
|
+
from euriai import EuriaiClient
|
5
4
|
|
6
5
|
|
7
6
|
class EuriaiLangChainLLM(LLM):
|
@@ -9,11 +8,9 @@ class EuriaiLangChainLLM(LLM):
|
|
9
8
|
temperature: float = 0.7
|
10
9
|
max_tokens: int = 300
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
super().__init__(model=model, temperature=temperature, max_tokens=max_tokens)
|
16
|
-
self._client = EuriaiClient(api_key=api_key, model=model)
|
11
|
+
def __init__(self, api_key: str, model: str = "gpt-4.1-nano", temperature: float = 0.7, max_tokens: int = 300, **kwargs):
|
12
|
+
super().__init__(model=model, temperature=temperature, max_tokens=max_tokens, **kwargs)
|
13
|
+
object.__setattr__(self, "_client", EuriaiClient(api_key=api_key, model=model))
|
17
14
|
|
18
15
|
@property
|
19
16
|
def _llm_type(self) -> str:
|
@@ -0,0 +1,9 @@
|
|
1
|
+
euriai/__init__.py,sha256=MB58A0AUXMvhW9gJWK8NSpnvtGawlejvtKJ1DOhs1SM,133
|
2
|
+
euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
3
|
+
euriai/client.py,sha256=USiqdMULgAiky7nkrJKF3FyKcOS2DtDmUdbeBSnyLYk,4076
|
4
|
+
euriai/langchain_llm.py,sha256=D5YvYwV7q9X2_vdoaQiPs7tNiUmjkGz-9Q-7M61hhkg,986
|
5
|
+
euriai-0.3.3.dist-info/METADATA,sha256=IHFMzYdAvNb5mROV7ozEpuA4gr8IkStYo11lx0JPEUA,1901
|
6
|
+
euriai-0.3.3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
7
|
+
euriai-0.3.3.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
8
|
+
euriai-0.3.3.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
9
|
+
euriai-0.3.3.dist-info/RECORD,,
|
euriai-0.3.2.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
euriai/__init__.py,sha256=MB58A0AUXMvhW9gJWK8NSpnvtGawlejvtKJ1DOhs1SM,133
|
2
|
-
euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
3
|
-
euriai/client.py,sha256=USiqdMULgAiky7nkrJKF3FyKcOS2DtDmUdbeBSnyLYk,4076
|
4
|
-
euriai/langchain_llm.py,sha256=cF4fNI3I-_aE23pduDbR82sBNVLFy5lHM7E5dbh9dxo,1040
|
5
|
-
euriai-0.3.2.dist-info/METADATA,sha256=ErOf6ji6MllBASVt256OIYT-Mb_-TcLMoankA4W4oVo,1901
|
6
|
-
euriai-0.3.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
7
|
-
euriai-0.3.2.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
8
|
-
euriai-0.3.2.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
9
|
-
euriai-0.3.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|