lionagi 0.0.207__tar.gz → 0.0.208__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {lionagi-0.0.207 → lionagi-0.0.208}/PKG-INFO +1 -1
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/ollama.py +2 -2
- lionagi-0.0.208/lionagi/version.py +1 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi.egg-info/PKG-INFO +1 -1
- lionagi-0.0.207/lionagi/version.py +0 -1
- {lionagi-0.0.207 → lionagi-0.0.208}/LICENSE +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/README.md +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/README.rst +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/anthropic.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/anyscale.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/azure.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/base_service.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/bedrock.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/everlyai.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/gemini.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/gpt4all.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/huggingface.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/litellm.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/localai.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/mistralai.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/mlx_service.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/oai.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/openllm.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/openrouter.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/perplexity.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/predibase.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/rungpt.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/services.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/transformers.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/vllm.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/_services/xinference.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/agents/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/agents/planner.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/agents/prompter.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/agents/scorer.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/agents/summarizer.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/agents/validator.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/bridge/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/bridge/langchain.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/bridge/llama_index.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/configs/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/configs/oai_configs.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/configs/openrouter_configs.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/branch/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/branch/branch.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/branch/branch_manager.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/branch/cluster.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/branch/conversation.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/core_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/flow/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/flow/flow.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/flow/flow_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/instruction_set/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/instruction_set/instruction_set.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/messages/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/messages/messages.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/sessions/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/core/sessions/session.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/chroma.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/deeplake.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/elasticsearch.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/lantern.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/pinecone.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/postgres.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/datastores/qdrant.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/loaders/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/loaders/chunker.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/loaders/load_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/loaders/reader.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/models/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/models/base_model.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/models/imodel.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/async_queue.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/base_condition.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/base_node.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/base_tool.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/data_logger.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/data_node.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/schema/status_tracker.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/structures/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/structures/graph.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/structures/relationship.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/structures/structure.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/test_api_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/test_call_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/test_encrypt_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/test_io_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/test_nested_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tests/test_utils/test_sys_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tools/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tools/tool_manager.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/tools/tool_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/__init__.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/api_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/call_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/encrypt_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/io_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/nested_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/sys_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi/utils/url_util.py +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi.egg-info/SOURCES.txt +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi.egg-info/dependency_links.txt +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi.egg-info/requires.txt +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/lionagi.egg-info/top_level.txt +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/pyproject.toml +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/setup.cfg +0 -0
- {lionagi-0.0.207 → lionagi-0.0.208}/setup.py +0 -0
@@ -17,14 +17,14 @@ class OllamaService(BaseService):
|
|
17
17
|
raise ImportError(f'Unable to import required module from ollama. Please make sure that ollama is installed.')
|
18
18
|
|
19
19
|
self.model = model
|
20
|
-
self.client = self.ollama.
|
20
|
+
self.client = self.ollama.AsyncClient(**kwargs)
|
21
21
|
|
22
22
|
async def serve_chat(self, messages, **kwargs):
|
23
23
|
self.ollama.pull(self.model)
|
24
24
|
payload = {'messages': messages}
|
25
25
|
|
26
26
|
try:
|
27
|
-
completion = self.client.chat(model=self.model, messages=messages, **kwargs)
|
27
|
+
completion = await self.client.chat(model=self.model, messages=messages, **kwargs)
|
28
28
|
completion['choices'] = [{'message': completion.pop('message')}]
|
29
29
|
return payload, completion
|
30
30
|
except Exception as e:
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.0.208"
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.0.207"
|
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
|
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
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|