Skip to content

Commit

Permalink
Merge pull request #30 from daydreamsai/llm-clients
Browse files Browse the repository at this point in the history
feat: llm clients
  • Loading branch information
ponderingdemocritus authored Jan 23, 2025
2 parents eeeabea + b927777 commit 143ce6b
Show file tree
Hide file tree
Showing 5 changed files with 1,763 additions and 61 deletions.
8 changes: 5 additions & 3 deletions examples/example-twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Consciousness } from "../packages/core/src/core/consciousness";
import { z } from "zod";

async function main() {
const loglevel = LogLevel.ERROR;
const loglevel = LogLevel.DEBUG;
// Initialize core dependencies
const vectorDb = new ChromaVectorDB("twitter_agent", {
chromaUrl: "http://localhost:8000",
Expand All @@ -33,15 +33,17 @@ async function main() {
const roomManager = new RoomManager(vectorDb);

const llmClient = new LLMClient({
model: "deepseek/deepseek-r1", // High performance model
model: "openai/gpt-4-turbo-preview", // Using OpenAI's GPT-4 Turbo
temperature: 0.7, // Slightly more creative
maxTokens: 4096, // Increased context window
});

// Initialize processor with default character personality
const processor = new Processor(
vectorDb,
llmClient,
defaultCharacter,
LogLevel.INFO
loglevel
);

// Initialize core system
Expand Down
15 changes: 15 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "^1.1.1",
"@ai-sdk/anthropic": "^1.1.1",
"@ai-sdk/azure": "^1.1.1",
"@ai-sdk/cerebras": "^0.1.1",
"@ai-sdk/cohere": "^1.1.1",
"@ai-sdk/deepinfra": "^0.1.1",
"@ai-sdk/deepseek": "^0.1.1",
"@ai-sdk/fireworks": "^0.1.1",
"@ai-sdk/google": "^1.1.1",
"@ai-sdk/google-vertex": "^2.1.1",
"@ai-sdk/groq": "^1.1.1",
"@ai-sdk/mistral": "^1.1.1",
"@ai-sdk/openai": "^1.1.1",
"@ai-sdk/togetherai": "^0.1.1",
"@ai-sdk/xai": "^1.1.1",
"@openrouter/ai-sdk-provider": "^0.0.6",
"agent-twitter-client": "^0.0.16",
"ai": "^4.1.0",
Expand Down
Loading

0 comments on commit 143ce6b

Please sign in to comment.