Skip to content

Commit

Permalink
Enabled import directly from llmclient (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: Mayk Caldas <[email protected]>
  • Loading branch information
maykcaldas and maykcaldas authored Dec 6, 2024
1 parent ac0511e commit 848166e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
43 changes: 43 additions & 0 deletions llmclient/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
from .embeddings import (
EmbeddingModel,
EmbeddingModes,
HybridEmbeddingModel,
SentenceTransformerEmbeddingModel,
SparseEmbeddingModel,
)
from .exceptions import (
JSONSchemaValidationError,
MalformedMessageError,
)
from .llms import (
LiteLLMModel,
LLMModel,
MultipleCompletionLLMModel,
)
from .messages import (
Message,
)
from .types import LLMResult
from .utils import (
encode_image_to_base64,
is_coroutine_callable,
setup_default_logs,
)

__all__ = [
"EmbeddingModel",
"EmbeddingModes",
"HybridEmbeddingModel",
"JSONSchemaValidationError",
"LLMModel",
"LLMResult",
"LiteLLMModel",
"MalformedMessageError",
"Message",
"MultipleCompletionLLMModel",
"SentenceTransformerEmbeddingModel",
"SparseEmbeddingModel",
"encode_image_to_base64",
"is_coroutine_callable",
"setup_default_logs",
]
4 changes: 2 additions & 2 deletions llmclient/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ class MultipleCompletionLLMModel(BaseModel):
description=(
"Configuration of the model:"
"model is the name of the llm model to use,"
"temperature is the sampling temperature, and",
"n is the number of completions to generate.",
"temperature is the sampling temperature, and"
"n is the number of completions to generate."
),
)
encoding: Any | None = None
Expand Down

0 comments on commit 848166e

Please sign in to comment.