mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
feat: move Azure-exclusive pricing plan mappings to config2.yaml.example
This commit is contained in:
parent
0e864dc9da
commit
c720c1d82f
2 changed files with 7 additions and 4 deletions
|
|
@ -3,6 +3,13 @@ llm:
|
|||
base_url: "YOUR_BASE_URL"
|
||||
api_key: "YOUR_API_KEY"
|
||||
model: "gpt-4-turbo-preview" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview
|
||||
# Azure-exclusive pricing plan mappings:
|
||||
# - gpt-3.5-turbo 4k: "gpt-3.5-turbo"
|
||||
# - gpt-4-turbo: "gpt-4-1106-preview"
|
||||
# - gpt-4-turbo-vision: "gpt-4-1106-preview"
|
||||
# - gpt-4 8k: "gpt-4"
|
||||
# See for more: https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/
|
||||
# pricing_plan: "gpt-4-turbo-preview"
|
||||
|
||||
proxy: "YOUR_PROXY"
|
||||
|
||||
|
|
|
|||
|
|
@ -35,10 +35,6 @@ TOKEN_COSTS = {
|
|||
"glm-3-turbo": {"prompt": 0.0, "completion": 0.0007}, # 128k version, prompt + completion tokens=0.005¥/k-tokens
|
||||
"glm-4": {"prompt": 0.0, "completion": 0.014}, # 128k version, prompt + completion tokens=0.1¥/k-tokens
|
||||
"gemini-pro": {"prompt": 0.00025, "completion": 0.0005},
|
||||
"gpt-3.5-turbo-4k": {"prompt": 0.0015, "completion": 0.002},
|
||||
"gpt-4-turbo": {"prompt": 0.01, "completion": 0.03},
|
||||
"gpt-4-turbo-vision": {"prompt": 0.01, "completion": 0.03},
|
||||
"gpt-4-8k": {"prompt": 0.03, "completion": 0.06},
|
||||
}
|
||||
|
||||
TOKEN_MAX = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue