Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ai-text-completions for VertexAI and HuggingFace inf #484

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

nicoloboschi
Copy link
Member

  • Implemented ai-text-completions agent for vertexAI. Only one prompt must be specified. The API is the same and Vertex inference the response depending on the model. Using a text model in the chat agent will cause runtime errors. Using a chat model in the text agent will cause runtime errors.
  • Implemented ai-text-completions agent for Hugging face. The API is the same as the chat-completions but in this way we support switching between providers while doing tests

}

@Override
@SneakyThrows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method that returns a CompletableFuture should not throw Exception

@eolivelli eolivelli merged commit 6eb1d0d into main Sep 26, 2023
8 checks passed
@eolivelli eolivelli deleted the text-completions-vertex-hf branch September 26, 2023 15:36
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants