euriai 0.3.15__tar.gz → 0.3.17__tar.gz
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-0.3.15 → euriai-0.3.17}/PKG-INFO +1 -1
- euriai-0.3.17/euriai/llamaindex/__init__.py +14 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/llamaindex/euri_chat.py +9 -6
- {euriai-0.3.15 → euriai-0.3.17}/euriai.egg-info/PKG-INFO +1 -1
- {euriai-0.3.15 → euriai-0.3.17}/setup.py +1 -1
- euriai-0.3.15/euriai/llamaindex/__init__.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/README.md +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/__init__.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/cli.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/client.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/embedding.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/langchain_embed.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/langchain_llm.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai/llamaindex/euri_embed.py +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai.egg-info/SOURCES.txt +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai.egg-info/dependency_links.txt +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai.egg-info/entry_points.txt +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai.egg-info/requires.txt +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/euriai.egg-info/top_level.txt +0 -0
- {euriai-0.3.15 → euriai-0.3.17}/setup.cfg +0 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
def __init__(
|
2
|
+
self,
|
3
|
+
api_key: str,
|
4
|
+
model: Optional[str] = None,
|
5
|
+
temperature: Optional[float] = None,
|
6
|
+
max_tokens: Optional[int] = None,
|
7
|
+
):
|
8
|
+
# Use default values directly, no `self.model` yet
|
9
|
+
super().__init__(
|
10
|
+
api_key=api_key,
|
11
|
+
model=model if model is not None else "gpt-4.1-nano",
|
12
|
+
temperature=temperature if temperature is not None else 0.7,
|
13
|
+
max_tokens=max_tokens if max_tokens is not None else 1000,
|
14
|
+
)
|
@@ -3,6 +3,7 @@ from typing import List, Optional
|
|
3
3
|
from llama_index.core.llms import LLM
|
4
4
|
from llama_index.core.base.llms.types import ChatMessage, CompletionResponse, CompletionResponseGen
|
5
5
|
|
6
|
+
|
6
7
|
class EuriaiLlamaIndexLLM(LLM):
|
7
8
|
api_key: str
|
8
9
|
model: str = "gpt-4.1-nano"
|
@@ -15,13 +16,15 @@ class EuriaiLlamaIndexLLM(LLM):
|
|
15
16
|
api_key: str,
|
16
17
|
model: Optional[str] = None,
|
17
18
|
temperature: Optional[float] = None,
|
18
|
-
max_tokens: Optional[int] = None
|
19
|
+
max_tokens: Optional[int] = None,
|
19
20
|
):
|
20
|
-
super
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
# ✅ Pydantic-style super init with all fields
|
22
|
+
super().__init__(
|
23
|
+
api_key=api_key,
|
24
|
+
model=model or self.model,
|
25
|
+
temperature=temperature if temperature is not None else self.temperature,
|
26
|
+
max_tokens=max_tokens if max_tokens is not None else self.max_tokens,
|
27
|
+
)
|
25
28
|
|
26
29
|
@property
|
27
30
|
def metadata(self):
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="euriai",
|
5
|
-
version="0.3.
|
5
|
+
version="0.3.17",
|
6
6
|
description="Python client for EURI LLM API (euron.one) with CLI, LangChain, and LlamaIndex integration",
|
7
7
|
long_description=open("README.md", encoding="utf-8").read(),
|
8
8
|
long_description_content_type="text/markdown",
|
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
|