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

fix(core): add more exports on llm/index #780

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/core/e2e/fixtures/llm/anthropic.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { OpenAI } from "./openai.js";

export class Anthropic extends OpenAI {}
export const ALL_AVAILABLE_ANTHROPIC_LEGACY_MODELS = {};
export const ALL_AVAILABLE_ANTHROPIC_MODELS = {};
export const ALL_AVAILABLE_V3_MODELS = {};
11 changes: 9 additions & 2 deletions packages/core/src/llm/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export { Anthropic } from "./anthropic.js";
export {
ALL_AVAILABLE_ANTHROPIC_LEGACY_MODELS,
ALL_AVAILABLE_ANTHROPIC_MODELS,
ALL_AVAILABLE_V3_MODELS,
Anthropic,
} from "./anthropic.js";
export { FireworksLLM } from "./fireworks.js";
export { GEMINI_MODEL, Gemini } from "./gemini.js";
export { Groq } from "./groq.js";
export {
ALL_AVAILABLE_MISTRAL_MODELS,
Expand All @@ -10,12 +16,13 @@ export * from "./openai.js";
export { Portkey } from "./portkey.js";
export * from "./replicate_ai.js";
// Note: The type aliases for replicate are to simplify usage for Llama 2 (we're using replicate for Llama 2 support)
export { GEMINI_MODEL, Gemini } from "./gemini.js";
export {
ALL_AVAILABLE_REPLICATE_MODELS,
DeuceChatStrategy,
LlamaDeuce,
ReplicateChatStrategy,
ReplicateLLM,
ReplicateSession,
} from "./replicate_ai.js";
export { TogetherLLM } from "./together.js";
export * from "./types.js";
Loading