mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-04 14:54:32 +01:00
Additional changes: * Improve typing * Modularize message history memory & fix/refactor lots of things * Fix summarization * Move memory relevance calculation to MemoryItem & improve test * Fix import warnings in web_selenium.py * Remove `memory_add` ghost command * Implement overlap in `split_text` * Move memory tests into subdirectory * Remove deprecated `get_ada_embedding()` and helpers * Fix used token calculation in `chat_with_ai` * Replace Message TypedDict by dataclass * Fix AgentManager singleton issues in tests --------- Co-authored-by: Auto-GPT-Bot <github-bot@agpt.co>
12 lines
548 B
Python
12 lines
548 B
Python
COSTS = {
|
|
"gpt-3.5-turbo": {"prompt": 0.002, "completion": 0.002},
|
|
"gpt-3.5-turbo-0301": {"prompt": 0.002, "completion": 0.002},
|
|
"gpt-4-0314": {"prompt": 0.03, "completion": 0.06},
|
|
"gpt-4": {"prompt": 0.03, "completion": 0.06},
|
|
"gpt-4-0314": {"prompt": 0.03, "completion": 0.06},
|
|
"gpt-4-32k": {"prompt": 0.06, "completion": 0.12},
|
|
"gpt-4-32k-0314": {"prompt": 0.06, "completion": 0.12},
|
|
"text-embedding-ada-002": {"prompt": 0.0004, "completion": 0.0},
|
|
"text-davinci-003": {"prompt": 0.02, "completion": 0.02},
|
|
}
|