repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/llama_index/llms/alibabacloud_aisearch/__init__.py | llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/llama_index/llms/alibabacloud_aisearch/__init__.py | from llama_index.llms.alibabacloud_aisearch.base import AlibabaCloudAISearchLLM
__all__ = ["AlibabaCloudAISearchLLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/llama_index/llms/alibabacloud_aisearch/base.py | llama-index-integrations/llms/llama-index-llms-alibabacloud-aisearch/llama_index/llms/alibabacloud_aisearch/base.py | import asyncio
import time
from typing import Dict, Any, List, Sequence
from llama_index.core.llms import (
CustomLLM,
CompletionResponse,
LLMMetadata,
)
from llama_index.core.llms.callbacks import llm_chat_callback, llm_completion_callback
from llama_index.core.bridge.pydantic import Field, PrivateAttr
fr... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/tests/conftest.py | llama-index-integrations/llms/llama-index-llms-dashscope/tests/conftest.py | # pants requires this import to recognize the dep
import pytest_asyncio # noqa: F401
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-dashscope/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/tests/test_dashscope.py | llama-index-integrations/llms/llama-index-llms-dashscope/tests/test_dashscope.py | from http import HTTPStatus
from types import SimpleNamespace
from typing import AsyncGenerator, List, Sequence
from unittest.mock import patch
import pytest
from llama_index.core.base.llms.types import (
CompletionResponse,
ChatMessage,
ChatResponse,
)
from llama_index.llms.dashscope.base import DashScop... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/tests/test_llms_dashscope.py | llama-index-integrations/llms/llama-index-llms-dashscope/tests/test_llms_dashscope.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.dashscope import DashScope
def test_class():
names_of_base_classes = [b.__name__ for b in DashScope.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/utils.py | llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/utils.py | """DashScope api utils."""
from http import HTTPStatus
from typing import Any, Dict, List, Sequence
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse,
CompletionResponse,
)
def dashscope_response_to_completion_response(
response: Any, stream: bool = False
) -> CompletionRespon... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/__init__.py | llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/__init__.py | from llama_index.llms.dashscope.base import DashScope, DashScopeGenerationModels
__all__ = ["DashScope", "DashScopeGenerationModels"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/base.py | llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/base.py | """DashScope llm api."""
from http import HTTPStatus
import json
from typing import (
Any,
AsyncGenerator,
Dict,
List,
Optional,
Sequence,
Tuple,
Union,
TYPE_CHECKING,
)
from pydantic import ConfigDict
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-mistralai/tests/test_llms_mistral.py | llama-index-integrations/llms/llama-index-llms-mistralai/tests/test_llms_mistral.py | import os
import httpx
import base64
from pathlib import Path
from unittest.mock import patch
from mistralai import ImageURLChunk, TextChunk, ThinkChunk
import pytest
from llama_index.core.base.llms.base import BaseLLM
from llama_index.core.base.llms.types import (
ChatMessage,
ImageBlock,
TextBlock,
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-mistralai/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-mistralai/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-mistralai/llama_index/llms/mistralai/utils.py | llama-index-integrations/llms/llama-index-llms-mistralai/llama_index/llms/mistralai/utils.py | import re
from typing import Dict
#
# https://docs.mistral.ai/getting-started/models/models_overview/#api-versioning
MISTRAL_MODELS_TAGGED_LATEST = {
"magistral-medium-latest": "magistral-medium-2509",
"magistral-small-latest": "magistral-small-2509",
"mistral-medium-latest": "mistral-medium-2508",
"m... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-mistralai/llama_index/llms/mistralai/__init__.py | llama-index-integrations/llms/llama-index-llms-mistralai/llama_index/llms/mistralai/__init__.py | from llama_index.llms.mistralai.base import MistralAI
__all__ = ["MistralAI"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-mistralai/llama_index/llms/mistralai/base.py | llama-index-integrations/llms/llama-index-llms-mistralai/llama_index/llms/mistralai/base.py | import json
from typing import (
Any,
Callable,
Dict,
List,
Optional,
Sequence,
Tuple,
Union,
TYPE_CHECKING,
)
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse,
ChatResponseAsyncGen,
ChatResponseGen,
ContentBlock,
CompletionResponse,
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ai21/tests/test_llms_ai21.py | llama-index-integrations/llms/llama-index-llms-ai21/tests/test_llms_ai21.py | from __future__ import annotations
import json
from typing import Type, Any, Iterable
from unittest import mock
import pytest
from ai21.models import (
CompletionsResponse as J2CompletionResponse,
CompletionData,
Completion,
CompletionFinishReason,
Prompt,
RoleType,
ChatMessage as J2ChatMe... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ai21/tests/conftest.py | llama-index-integrations/llms/llama-index-llms-ai21/tests/conftest.py | # pants requires this import to recognize the dep
import pytest_asyncio # noqa: F401
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ai21/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-ai21/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ai21/llama_index/llms/ai21/utils.py | llama-index-integrations/llms/llama-index-llms-ai21/llama_index/llms/ai21/utils.py | from typing import Union, Sequence, List, Tuple
from ai21.models import ChatMessage as J2ChatMessage, RoleType
from ai21.models.chat import (
ChatMessage as AI21ChatMessage,
AssistantMessage,
ToolMessage as AI21ToolMessage,
UserMessage,
SystemMessage,
)
from llama_index.core.base.llms.types import ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ai21/llama_index/llms/ai21/__init__.py | llama-index-integrations/llms/llama-index-llms-ai21/llama_index/llms/ai21/__init__.py | from llama_index.llms.ai21.base import AI21
__all__ = ["AI21"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ai21/llama_index/llms/ai21/base.py | llama-index-integrations/llms/llama-index-llms-ai21/llama_index/llms/ai21/base.py | from typing import Any, Callable, Dict, List, Optional, Sequence, Union
from ai21_tokenizer import BaseTokenizer, Tokenizer # pants: no-infer-dep
from llama_index.core.base.llms.generic_utils import (
achat_to_completion_decorator,
astream_chat_to_completion_decorator,
chat_to_completion_decorator,
st... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-netmind/tests/test_llms_netmind.py | llama-index-integrations/llms/llama-index-llms-netmind/tests/test_llms_netmind.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.netmind import NetmindLLM
def test_llm_class():
names_of_base_classes = [b.__name__ for b in NetmindLLM.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-netmind/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-netmind/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-netmind/llama_index/llms/netmind/__init__.py | llama-index-integrations/llms/llama-index-llms-netmind/llama_index/llms/netmind/__init__.py | from llama_index.llms.netmind.base import NetmindLLM
__all__ = ["NetmindLLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-netmind/llama_index/llms/netmind/base.py | llama-index-integrations/llms/llama-index-llms-netmind/llama_index/llms/netmind/base.py | import os
from typing import Any, Optional
from llama_index.llms.openai_like import OpenAILike
class NetmindLLM(OpenAILike):
"""
Netmind LLM.
Examples:
`pip install llama-index-llms-netmind`
```python
from llama_index.llms.netmind import NetmindLLM
# set api key in env ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openvino-genai/llama_index/llms/openvino_genai/__init__.py | llama-index-integrations/llms/llama-index-llms-openvino-genai/llama_index/llms/openvino_genai/__init__.py | from llama_index.llms.openvino_genai.base import OpenVINOGenAILLM
__all__ = ["OpenVINOGenAILLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openvino-genai/llama_index/llms/openvino_genai/base.py | llama-index-integrations/llms/llama-index-llms-openvino-genai/llama_index/llms/openvino_genai/base.py | import logging
from typing import Any, Callable, Optional, Sequence, Union
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse,
ChatResponseGen,
CompletionResponse,
CompletionResponseGen,
LLMMetadata,
)
from llama_index.core.bridge.pydantic import Field, PrivateAttr
from ll... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-premai/llama_index/llms/premai/utils.py | llama-index-integrations/llms/llama-index-llms-premai/llama_index/llms/premai/utils.py | from typing import Sequence
from llama_index.core.base.llms.types import ChatMessage, MessageRole
def prepare_messages_before_chat(messages: Sequence[ChatMessage], **all_kwargs):
chat_messages = []
for message in messages:
if "system_prompt" in all_kwargs and message.role.value == MessageRole.SYSTEM:... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-premai/llama_index/llms/premai/__init__.py | llama-index-integrations/llms/llama-index-llms-premai/llama_index/llms/premai/__init__.py | from llama_index.llms.premai.base import PremAI
__all__ = ["PremAI"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-premai/llama_index/llms/premai/base.py | llama-index-integrations/llms/llama-index-llms-premai/llama_index/llms/premai/base.py | """PremAI's API integration with llama-index to interact with deployed projects."""
from typing import Any, Dict, Optional, Sequence, Callable
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse,
ChatResponseGen,
CompletionResponse,
CompletionResponseGen,
LLMMetadata,
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-predibase/tests/test_llms_predibase.py | llama-index-integrations/llms/llama-index-llms-predibase/tests/test_llms_predibase.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.predibase import PredibaseLLM
def test_embedding_class():
names_of_base_classes = [b.__name__ for b in PredibaseLLM.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-predibase/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-predibase/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-predibase/llama_index/llms/predibase/__init__.py | llama-index-integrations/llms/llama-index-llms-predibase/llama_index/llms/predibase/__init__.py | from llama_index.llms.predibase.base import PredibaseLLM
__all__ = ["PredibaseLLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-predibase/llama_index/llms/predibase/base.py | llama-index-integrations/llms/llama-index-llms-predibase/llama_index/llms/predibase/base.py | import os
from typing import Any, Callable, Dict, Optional, Sequence, Union
from llama_index.core.base.llms.types import (
ChatMessage,
CompletionResponse,
CompletionResponseGen,
LLMMetadata,
)
from llama_index.core.bridge.pydantic import Field, PrivateAttr
from llama_index.core.callbacks import Callba... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-together/tests/test_llms_together.py | llama-index-integrations/llms/llama-index-llms-together/tests/test_llms_together.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.together import TogetherLLM
def test_embedding_class():
names_of_base_classes = [b.__name__ for b in TogetherLLM.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-together/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-together/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-together/llama_index/llms/together/__init__.py | llama-index-integrations/llms/llama-index-llms-together/llama_index/llms/together/__init__.py | from llama_index.llms.together.base import TogetherLLM
__all__ = ["TogetherLLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-together/llama_index/llms/together/base.py | llama-index-integrations/llms/llama-index-llms-together/llama_index/llms/together/base.py | import os
from typing import Any, Optional
from llama_index.llms.openai_like import OpenAILike
class TogetherLLM(OpenAILike):
"""
Together LLM.
Examples:
`pip install llama-index-llms-together`
```python
from llama_index.llms.together import TogetherLLM
# set api key in... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-fireworks/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-fireworks/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-fireworks/tests/test_llms_fireworks.py | llama-index-integrations/llms/llama-index-llms-fireworks/tests/test_llms_fireworks.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.fireworks import Fireworks
def test_text_inference_embedding_class():
names_of_base_classes = [b.__name__ for b in Fireworks.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-fireworks/llama_index/llms/fireworks/utils.py | llama-index-integrations/llms/llama-index-llms-fireworks/llama_index/llms/fireworks/utils.py | from typing import Any, Dict, List, Optional, Sequence, Tuple
from llama_index.core.base.llms.types import ChatMessage, MessageRole
from llama_index.core.base.llms.generic_utils import get_from_param_or_env
DEFAULT_FIREWORKS_API_BASE = "https://api.fireworks.ai/inference/v1"
DEFAULT_FIREWORKS_API_VERSION = ""
SERVER... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-fireworks/llama_index/llms/fireworks/__init__.py | llama-index-integrations/llms/llama-index-llms-fireworks/llama_index/llms/fireworks/__init__.py | from llama_index.llms.fireworks.base import Fireworks
__all__ = ["Fireworks"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-fireworks/llama_index/llms/fireworks/base.py | llama-index-integrations/llms/llama-index-llms-fireworks/llama_index/llms/fireworks/base.py | from typing import Any, Callable, Dict, Optional, Sequence
from llama_index.core.base.llms.types import ChatMessage, LLMMetadata
from llama_index.core.callbacks import CallbackManager
from llama_index.core.constants import DEFAULT_NUM_OUTPUTS, DEFAULT_TEMPERATURE
from llama_index.core.base.llms.generic_utils import get... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-gigachat/tests/test_llms_gigachat.py | llama-index-integrations/llms/llama-index-llms-gigachat/tests/test_llms_gigachat.py | from typing import TypeVar, Iterable, AsyncIterator
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from gigachat.models import ChatCompletionChunk, ChoicesChunk, MessagesChunk
from llama_index.core.base.llms.base import BaseLLM
from llama_index.core.base.llms.types import ChatMessage
from llama_... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-gigachat/tests/conftest.py | llama-index-integrations/llms/llama-index-llms-gigachat/tests/conftest.py | # pants requires this import to recognize the dep
import pytest_asyncio # noqa: F401
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-gigachat/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-gigachat/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-gigachat/llama_index/llms/gigachat/__init__.py | llama-index-integrations/llms/llama-index-llms-gigachat/llama_index/llms/gigachat/__init__.py | from llama_index.llms.gigachat.base import GigaChatLLM, GigaChatModel
__all__ = [
"GigaChatLLM",
"GigaChatModel",
]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-gigachat/llama_index/llms/gigachat/base.py | llama-index-integrations/llms/llama-index-llms-gigachat/llama_index/llms/gigachat/base.py | from enum import Enum
from typing import Any, Sequence, Optional, Dict, Union, AsyncGenerator, Generator
from gigachat import GigaChat
from gigachat.models import Chat, Messages
from llama_index.core.base.llms.types import (
LLMMetadata,
CompletionResponse,
CompletionResponseGen,
ChatMessage,
ChatR... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-meta/tests/test_llms_llama.py | llama-index-integrations/llms/llama-index-llms-meta/tests/test_llms_llama.py | # Copyright (c) Meta Platforms, Inc. and affiliates
from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.meta import LlamaLLM
def test_embedding_class():
names_of_base_classes = [b.__name__ for b in LlamaLLM.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-meta/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-meta/tests/__init__.py | # Copyright (c) Meta Platforms, Inc. and affiliates
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-meta/llama_index/llms/meta/__init__.py | llama-index-integrations/llms/llama-index-llms-meta/llama_index/llms/meta/__init__.py | # Copyright (c) Meta Platforms, Inc. and affiliates
from llama_index.llms.meta.base import LlamaLLM
__all__ = ["LlamaLLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-meta/llama_index/llms/meta/base.py | llama-index-integrations/llms/llama-index-llms-meta/llama_index/llms/meta/base.py | # Copyright (c) Meta Platforms, Inc. and affiliates
import os
from typing import Any, Optional
from llama_index.llms.openai_like import OpenAILike
class LlamaLLM(OpenAILike):
"""
Llama LLM.
Examples:
`pip install llama-index-llms-meta`
```python
from llama_index.llms.meta import... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-deepseek/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-deepseek/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-deepseek/tests/test_llms_deepseek.py | llama-index-integrations/llms/llama-index-llms-deepseek/tests/test_llms_deepseek.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.deepseek import DeepSeek
def test_llm_class():
names_of_base_classes = [b.__name__ for b in DeepSeek.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-deepseek/llama_index/llms/deepseek/utils.py | llama-index-integrations/llms/llama-index-llms-deepseek/llama_index/llms/deepseek/utils.py | DEEPSEEK_MODEL_TO_CONTEXT_WINDOW = {
"deepseek-chat": 64000,
"deepseek-reasoner": 64000,
}
FUNCTION_CALLING_MODELS = {"deepseek-chat"}
def get_context_window(model: str) -> int:
return DEEPSEEK_MODEL_TO_CONTEXT_WINDOW.get(model, 64000)
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-deepseek/llama_index/llms/deepseek/__init__.py | llama-index-integrations/llms/llama-index-llms-deepseek/llama_index/llms/deepseek/__init__.py | from llama_index.llms.deepseek.base import DeepSeek
__all__ = ["DeepSeek"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-deepseek/llama_index/llms/deepseek/base.py | llama-index-integrations/llms/llama-index-llms-deepseek/llama_index/llms/deepseek/base.py | import os
from typing import Any, Optional
from llama_index.llms.openai_like import OpenAILike
from llama_index.llms.deepseek.utils import get_context_window, FUNCTION_CALLING_MODELS
class DeepSeek(OpenAILike):
"""
DeepSeek LLM.
Examples:
`pip install llama-index-llms-deepseek`
```pytho... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-aibadgr/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-aibadgr/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-aibadgr/tests/test_llms_aibadgr.py | llama-index-integrations/llms/llama-index-llms-aibadgr/tests/test_llms_aibadgr.py | from llama_index.llms.aibadgr import AIBadgr
def test_class_name():
"""Test that class name is correct."""
names_of_base_classes = [b.__name__ for b in AIBadgr.__mro__]
assert AIBadgr.class_name() == "AIBadgr"
assert "OpenAILike" in names_of_base_classes
def test_initialization():
"""Test that A... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-aibadgr/llama_index/llms/aibadgr/__init__.py | llama-index-integrations/llms/llama-index-llms-aibadgr/llama_index/llms/aibadgr/__init__.py | from llama_index.llms.aibadgr.base import AIBadgr
__all__ = ["AIBadgr"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-aibadgr/llama_index/llms/aibadgr/base.py | llama-index-integrations/llms/llama-index-llms-aibadgr/llama_index/llms/aibadgr/base.py | import os
from typing import Any, Optional
from llama_index.llms.openai_like import OpenAILike
class AIBadgr(OpenAILike):
"""
AI Badgr LLM (Budget/Utility, OpenAI-compatible).
AI Badgr provides OpenAI-compatible API endpoints with tier-based model naming.
Use tier names (basic, normal, premium) or p... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/tests/test_llms_openai.py | llama-index-integrations/llms/llama-index-llms-openai/tests/test_llms_openai.py | import os
from llama_index.core.base.llms.base import BaseLLM
from llama_index.core.tools import FunctionTool
import pytest
from llama_index.llms.openai import OpenAI
from llama_index.llms.openai.utils import resolve_tool_choice
from llama_index.core.base.llms.types import ToolCallBlock
def test_text_inference_embedd... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai.py | llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai.py | import os
from typing import Any, AsyncGenerator, Generator, Optional
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from llama_index.core.base.llms.types import ChatMessage
from llama_index.llms.openai import OpenAI
import openai
from openai.types.chat.chat_completion import (
ChatCompletion... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_responses.py | llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_responses.py | import os
import httpx
import pytest
from unittest.mock import MagicMock, patch
from pathlib import Path
from typing import List
from llama_index.core.base.llms.types import (
ChatMessage,
MessageRole,
TextBlock,
DocumentBlock,
ChatResponse,
ThinkingBlock,
ToolCallBlock,
)
from llama_index.... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/tests/conftest.py | llama-index-integrations/llms/llama-index-llms-openai/tests/conftest.py | # pants requires this import to recognize the dep
import pytest_asyncio # noqa: F401
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-openai/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_utils.py | llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_utils.py | import json
from typing import List
import pytest
from openai.types.chat.chat_completion_message import ChatCompletionMessage
from openai.types.chat.chat_completion_message_param import (
ChatCompletionMessageParam,
)
from openai.types.chat.chat_completion_message_tool_call import (
ChatCompletionMessageToolCa... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/utils.py | llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/utils.py | import logging
import os
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type, Union
import openai
from deprecated import deprecated
from openai.types.chat import ChatCompletionMessageParam, ChatCompletionMessageToolCall
from openai.types.chat.chat_completion_chunk import ChoiceDeltaToolCall
f... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | true |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/__init__.py | llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/__init__.py | from llama_index.llms.openai.base import AsyncOpenAI, OpenAI, SyncOpenAI, Tokenizer
from llama_index.llms.openai.responses import OpenAIResponses
__all__ = ["OpenAI", "OpenAIResponses", "Tokenizer", "SyncOpenAI", "AsyncOpenAI"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/responses.py | llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/responses.py | import functools
import httpx
import tiktoken
import base64
from openai import AsyncOpenAI, AzureOpenAI
from openai import OpenAI as SyncOpenAI
from openai.types.responses import (
Response,
ResponseStreamEvent,
ResponseCompletedEvent,
ResponseCreatedEvent,
ResponseFileSearchCallCompletedEvent,
... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | true |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/base.py | llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/base.py | import functools
from json.decoder import JSONDecodeError
from typing import (
TYPE_CHECKING,
Any,
AsyncGenerator,
Awaitable,
Callable,
Dict,
Generator,
List,
Literal,
Optional,
Protocol,
Sequence,
Type,
Union,
cast,
runtime_checkable,
)
import httpx
impo... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | true |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-stepfun/tests/test_llms_stepfun.py | llama-index-integrations/llms/llama-index-llms-stepfun/tests/test_llms_stepfun.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.stepfun import StepFun
def test_text_inference_embedding_class():
names_of_base_classes = [b.__name__ for b in StepFun.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-stepfun/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-stepfun/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-stepfun/llama_index/llms/stepfun/__init__.py | llama-index-integrations/llms/llama-index-llms-stepfun/llama_index/llms/stepfun/__init__.py | from llama_index.llms.stepfun.base import StepFun
__all__ = ["StepFun"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-stepfun/llama_index/llms/stepfun/base.py | llama-index-integrations/llms/llama-index-llms-stepfun/llama_index/llms/stepfun/base.py | from typing import Any, Dict, Optional
from llama_index.core.base.llms.types import LLMMetadata
from llama_index.core.bridge.pydantic import Field
from llama_index.core.constants import (
DEFAULT_CONTEXT_WINDOW,
DEFAULT_NUM_OUTPUTS,
DEFAULT_TEMPERATURE,
)
from llama_index.core.base.llms.generic_utils impor... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-sambanovasystems/tests/conftest.py | llama-index-integrations/llms/llama-index-llms-sambanovasystems/tests/conftest.py | # pants requires this import to recognize the dep
import pytest_asyncio # noqa: F401
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-sambanovasystems/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-sambanovasystems/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-sambanovasystems/tests/test_llms_sambanovasystems.py | llama-index-integrations/llms/llama-index-llms-sambanovasystems/tests/test_llms_sambanovasystems.py | import asyncio
import time
import os
import pytest
from llama_index.core.base.llms.types import (
ChatMessage,
MessageRole,
)
from llama_index.core.llms.llm import LLM
from llama_index.llms.sambanovasystems import SambaNovaCloud, SambaStudio
sambanova_api_key = os.environ.get("SAMBANOVA_API_KEY", None)
sambas... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-sambanovasystems/llama_index/llms/sambanovasystems/__init__.py | llama-index-integrations/llms/llama-index-llms-sambanovasystems/llama_index/llms/sambanovasystems/__init__.py | from llama_index.llms.sambanovasystems.base import SambaNovaCloud, SambaStudio
__all__ = ["SambaNovaCloud", "SambaStudio"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-sambanovasystems/llama_index/llms/sambanovasystems/base.py | llama-index-integrations/llms/llama-index-llms-sambanovasystems/llama_index/llms/sambanovasystems/base.py | import aiohttp
from typing import Any, Dict, List, Optional, Iterator, Sequence, AsyncIterator, Tuple
import requests
from llama_index.core.llms.llm import LLM
from llama_index.core.llms.callbacks import (
llm_chat_callback,
llm_completion_callback,
)
from llama_index.core.base.llms.types import (
ChatMes... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | true |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-yi/tests/test_llms_yi.py | llama-index-integrations/llms/llama-index-llms-yi/tests/test_llms_yi.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.yi import Yi
def test_embedding_class():
names_of_base_classes = [b.__name__ for b in Yi.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-yi/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-yi/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-yi/llama_index/llms/yi/__init__.py | llama-index-integrations/llms/llama-index-llms-yi/llama_index/llms/yi/__init__.py | from llama_index.llms.yi.base import Yi
__all__ = ["Yi"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-yi/llama_index/llms/yi/base.py | llama-index-integrations/llms/llama-index-llms-yi/llama_index/llms/yi/base.py | import os
from typing import Any, Dict, Optional, Sequence, Union
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse,
ChatResponseAsyncGen,
ChatResponseGen,
CompletionResponse,
CompletionResponseAsyncGen,
CompletionResponseGen,
LLMMetadata,
)
from llama_index.core.... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/tests/test_tool_required.py | llama-index-integrations/llms/llama-index-llms-ibm/tests/test_tool_required.py | from unittest.mock import MagicMock, patch
from llama_index.core.tools import FunctionTool
from llama_index.llms.ibm import WatsonxLLM
def search(query: str) -> str:
"""Search for information about a query."""
return f"Results for {query}"
calculator_tool = FunctionTool.from_defaults(
fn=lambda a, b: a ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/tests/test_llms_ibm.py | llama-index-integrations/llms/llama-index-llms-ibm/tests/test_llms_ibm.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.ibm import WatsonxLLM
def test_embedding_class():
names_of_base_classes = [b.__name__ for b in WatsonxLLM.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/tests/conftest.py | llama-index-integrations/llms/llama-index-llms-ibm/tests/conftest.py | # pants requires this import to recognize the dep
import pytest_asyncio # noqa: F401
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-ibm/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/tests/test_ibm.py | llama-index-integrations/llms/llama-index-llms-ibm/tests/test_ibm.py | from typing import Any, Dict, Generator
from unittest.mock import MagicMock, patch
import warnings
import pytest
from llama_index.core.base.llms.types import ChatMessage, LLMMetadata
from llama_index.llms.ibm import WatsonxLLM
from llama_index.llms.ibm.base import DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_WINDOW
def mock_... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/llama_index/llms/ibm/utils.py | llama-index-integrations/llms/llama-index-llms-ibm/llama_index/llms/ibm/utils.py | import os
from typing import Dict, Union, Optional, List, Any
from ibm_watsonx_ai import APIClient
from llama_index.core.base.llms.generic_utils import (
get_from_param_or_env,
)
from llama_index.core.base.llms.types import ChatMessage, MessageRole
# Import SecretStr directly from pydantic
# since there is not o... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/llama_index/llms/ibm/__init__.py | llama-index-integrations/llms/llama-index-llms-ibm/llama_index/llms/ibm/__init__.py | from llama_index.llms.ibm.base import WatsonxLLM
__all__ = ["WatsonxLLM"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-ibm/llama_index/llms/ibm/base.py | llama-index-integrations/llms/llama-index-llms-ibm/llama_index/llms/ibm/base.py | from typing import Any, Dict, Optional, Sequence, Union, Tuple, List, TYPE_CHECKING
from ibm_watsonx_ai import Credentials, APIClient
from ibm_watsonx_ai.foundation_models import ModelInference
from ibm_watsonx_ai.metanames import GenTextParamsMetaNames, GenChatParamsMetaNames
from llama_index.core.base.llms.types im... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-azure-openai/tests/test_llms_azure_openai.py | llama-index-integrations/llms/llama-index-llms-azure-openai/tests/test_llms_azure_openai.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.azure_openai import AzureOpenAI
def test_text_inference_embedding_class():
names_of_base_classes = [b.__name__ for b in AzureOpenAI.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-azure-openai/tests/test_azure_openai.py | llama-index-integrations/llms/llama-index-llms-azure-openai/tests/test_azure_openai.py | import pytest
from openai import AzureOpenAI as SyncAzureOpenAI
from openai import AsyncAzureOpenAI
from typing import Any, Generator, AsyncGenerator
from unittest.mock import MagicMock, AsyncMock, patch
import httpx
from llama_index.llms.azure_openai import AzureOpenAI
from llama_index.core.base.llms.types import Chat... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-azure-openai/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-azure-openai/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false | |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/utils.py | llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/utils.py | import time
from typing import Any, Optional
from azure.core.exceptions import ClientAuthenticationError
from azure.identity import DefaultAzureCredential
def refresh_openai_azuread_token(
azure_ad_token: Any = None,
) -> Any:
"""
Checks the validity of the associated token, if any, and tries to refresh ... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/__init__.py | llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/__init__.py | from llama_index.llms.azure_openai.base import (
AzureOpenAI,
SyncAzureOpenAI,
AsyncAzureOpenAI,
)
__all__ = ["AzureOpenAI", "SyncAzureOpenAI", "AsyncAzureOpenAI"]
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/base.py | llama-index-integrations/llms/llama-index-llms-azure-openai/llama_index/llms/azure_openai/base.py | from typing import Any, Callable, Dict, Optional, Sequence
import httpx
from llama_index.core.base.llms.types import ChatMessage
from llama_index.core.bridge.pydantic import Field, PrivateAttr, model_validator
from llama_index.core.callbacks import CallbackManager
from llama_index.core.base.llms.generic_utils import g... | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-langchain/tests/test_llms_langchain.py | llama-index-integrations/llms/llama-index-llms-langchain/tests/test_llms_langchain.py | from llama_index.core.base.llms.base import BaseLLM
from llama_index.llms.langchain import LangChainLLM
def test_embedding_class():
names_of_base_classes = [b.__name__ for b in LangChainLLM.__mro__]
assert BaseLLM.__name__ in names_of_base_classes
| python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
run-llama/llama_index | https://github.com/run-llama/llama_index/blob/dd5b31109cc8eb64411caf9fc1fa0f51e584c325/llama-index-integrations/llms/llama-index-llms-langchain/tests/__init__.py | llama-index-integrations/llms/llama-index-llms-langchain/tests/__init__.py | python | MIT | dd5b31109cc8eb64411caf9fc1fa0f51e584c325 | 2026-01-04T14:39:40.052063Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.