-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mabry1985/moar-updates
Moar updates
- Loading branch information
Showing
71 changed files
with
4,475 additions
and
1,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@ai-citizens/prompts": patch | ||
"@ai-citizens/graph": patch | ||
"@ai-citizens/tools": patch | ||
"@ai-citizens/utils": patch | ||
"@ai-citizens/ava": patch | ||
"@ai-citizens/llm": patch | ||
--- | ||
|
||
additional cli improvements, new graphs and functionality |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,5 @@ coverage | |
_docpress | ||
tsconfig.tsbuildinfo | ||
.env | ||
ava.env | ||
ava.env | ||
langgraphjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,56 @@ | ||
{ | ||
"modelConfig": { | ||
"anthropic": [ | ||
"claude-3-5-sonnet-20240620", | ||
"claude-3-haiku-20240307", | ||
"claude-3-opus-20240229", | ||
"claude-3-sonnet-20240229" | ||
], | ||
"google": ["gemini-1.0-pro", "gemini-1.5-flash", "gemini-1.5-pro"], | ||
"groq": [ | ||
"gemma-7b-it", | ||
"gemma2-9b-it", | ||
"llama-3.1-8b-instant", | ||
"llama-3.1-70b-versatile", | ||
"mixtral-8x7b-32768" | ||
], | ||
"local": ["hermes-2-pro-llama-3-8b"], | ||
"ollama": ["llama3.1"], | ||
"openAI": [ | ||
"gpt-3.5-turbo", | ||
"gpt-4", | ||
"gpt-4-0125-preview", | ||
"gpt-4-turbo", | ||
"gpt-4o", | ||
"gpt-4o-mini" | ||
] | ||
"anthropic": { | ||
"defaultModel": "claude-3-5-sonnet-20240620", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"claude-3-5-sonnet-20240620", | ||
"claude-3-haiku-20240307", | ||
"claude-3-opus-20240229", | ||
"claude-3-sonnet-20240229" | ||
] | ||
}, | ||
"google": { | ||
"defaultModel": "gemini-1.5-pro", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": ["gemini-1.0-pro", "gemini-1.5-flash", "gemini-1.5-pro"] | ||
}, | ||
"openAI": { | ||
"defaultModel": "gpt-4o", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"gpt-3.5-turbo", | ||
"gpt-4", | ||
"gpt-4-0125-preview", | ||
"gpt-4-turbo", | ||
"gpt-4o", | ||
"gpt-4o-mini" | ||
] | ||
}, | ||
"groq": { | ||
"defaultModel": "llama-3.1-8b-instant", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"llama-3.1-8b-instant", | ||
"llama-3.1-70b-versatile", | ||
"mixtral-8x7b-32768" | ||
] | ||
}, | ||
"ollama": { | ||
"defaultModel": "llama3.1", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": ["llama3.1"] | ||
}, | ||
"local": { | ||
"defaultModel": "hermes-2-pro-llama-3-8b", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": ["hermes-2-pro-llama-3-8b"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"modelConfig": { | ||
"anthropic": { | ||
"defaultModel": "claude-3-5-sonnet-20240620", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"claude-3-5-sonnet-20240620", | ||
"claude-3-haiku-20240307", | ||
"claude-3-opus-20240229", | ||
"claude-3-sonnet-20240229" | ||
] | ||
}, | ||
"google": { | ||
"defaultModel": "gemini-1.5-pro", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"gemini-1.0-pro", | ||
"gemini-1.5-flash", | ||
"gemini-1.5-pro" | ||
] | ||
}, | ||
"openAI": { | ||
"defaultModel": "gpt-4o", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"gpt-3.5-turbo", | ||
"gpt-4", | ||
"gpt-4-0125-preview", | ||
"gpt-4-turbo", | ||
"gpt-4o", | ||
"gpt-4o-mini" | ||
] | ||
}, | ||
"groq": { | ||
"defaultModel": "llama-3.1-8b-instant", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"llama-3.1-8b-instant", | ||
"llama-3.1-70b-versatile", | ||
"mixtral-8x7b-32768" | ||
] | ||
}, | ||
"ollama": { | ||
"defaultModel": "llama3.1", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"llama3.1" | ||
] | ||
}, | ||
"local": { | ||
"defaultModel": "hermes-2-pro-llama-3-8b", | ||
"temperature": 0.5, | ||
"maxTokens": 8192, | ||
"models": [ | ||
"hermes-2-pro-llama-3-8b" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Args, Command, Flags } from "@oclif/core"; | ||
import { processYouTubeVideo, runGraphGenerator } from "@ai-citizens/graph"; | ||
|
||
export default class TestGraph extends Command { | ||
static override args = { | ||
type: Args.string({ description: "type of graph to run" }), | ||
}; | ||
|
||
static override description = "describe the command here"; | ||
|
||
static override examples = ["<%= config.bin %> <%= command.id %>"]; | ||
|
||
static override flags = { | ||
// flag with no value (-f, --force) | ||
force: Flags.boolean({ char: "f" }), | ||
}; | ||
|
||
public async run(): Promise<void> { | ||
const { args, flags } = await this.parse(TestGraph); | ||
|
||
if (args.type === "youtube" || !args.type) { | ||
const parsedVideo = await processYouTubeVideo(); | ||
console.log(parsedVideo); | ||
} | ||
|
||
if (args.type === "graph") { | ||
const parsedGraph = await runGraphGenerator( | ||
"generate a graph for a chatbot", | ||
{ | ||
configurable: { | ||
thread_id: "123", | ||
}, | ||
} | ||
); | ||
console.log(parsedGraph); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.