| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | """Classes for working with language models.""" |
| |
|
| | from vertexai.language_models._language_models import ( |
| | _PreviewChatModel, |
| | _PreviewChatSession, |
| | _PreviewCodeChatModel, |
| | _PreviewCodeChatSession, |
| | _PreviewCodeGenerationModel, |
| | _PreviewTextEmbeddingModel, |
| | _PreviewTextGenerationModel, |
| | ChatMessage, |
| | CountTokensResponse, |
| | InputOutputTextPair, |
| | TextEmbedding, |
| | TextEmbeddingInput, |
| | TextGenerationResponse, |
| | TuningEvaluationSpec, |
| | ) |
| |
|
| | from vertexai.language_models._evaluatable_language_models import ( |
| | EvaluationTextGenerationSpec, |
| | EvaluationTextSummarizationSpec, |
| | EvaluationQuestionAnsweringSpec, |
| | EvaluationTextClassificationSpec, |
| | EvaluationClassificationMetric, |
| | EvaluationMetric, |
| | ) |
| |
|
| |
|
| | ChatModel = _PreviewChatModel |
| | ChatSession = _PreviewChatSession |
| | CodeChatModel = _PreviewCodeChatModel |
| | CodeChatSession = _PreviewCodeChatSession |
| | CodeGenerationModel = _PreviewCodeGenerationModel |
| | TextGenerationModel = _PreviewTextGenerationModel |
| | TextEmbeddingModel = _PreviewTextEmbeddingModel |
| |
|
| | __all__ = [ |
| | "ChatMessage", |
| | "ChatModel", |
| | "ChatSession", |
| | "CodeChatModel", |
| | "CodeChatSession", |
| | "CodeGenerationModel", |
| | "CountTokensResponse", |
| | "EvaluationClassificationMetric", |
| | "EvaluationMetric", |
| | "EvaluationTextGenerationSpec", |
| | "EvaluationTextSummarizationSpec", |
| | "EvaluationQuestionAnsweringSpec", |
| | "EvaluationTextClassificationSpec", |
| | "InputOutputTextPair", |
| | "TextEmbedding", |
| | "TextEmbeddingInput", |
| | "TextEmbeddingModel", |
| | "TextGenerationModel", |
| | "TextGenerationResponse", |
| | "TuningEvaluationSpec", |
| | ] |
| |
|