Skip to content

Commit

Permalink
fix(core): add more exports on llm/index (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
yisding authored Apr 29, 2024
1 parent db1d1f5 commit 0d50b22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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";

0 comments on commit 0d50b22

Please sign in to comment.