AG2 home page
Search or ask...
ag2ai/ag2
ag2ai/ag2
Search...
Navigation
token_count_utils
autogen.token_count_utils.get_max_token_limit
Home
User Guide
API References
Use Cases
User Stories
Contribute
FAQs
Ecosystem
Blog
API Reference
autogen
Overview
AFTER_WORK
AfterWork
AfterWorkOption
Agent
AgentNameConflictError
AssistantAgent
Cache
ChatCompletion
ChatResult
Completion
ConversableAgent
GroupChat
GroupChatManager
InvalidCarryOverTypeError
ModelClient
NoEligibleSpeakerError
ON_CONDITION
OnCondition
OpenAIWrapper
SenderRequiredError
SwarmAgent
SwarmResult
UPDATE_SYSTEM_MESSAGE
UndefinedNextAgentError
UpdateSystemMessage
UserProxyAgent
a_initiate_swarm_chat
config_list_from_dotenv
config_list_from_json
config_list_from_models
config_list_gpt4_gpt35
config_list_openai_aoai
filter_config
gather_usage_summary
get_config_list
initiate_chats
initiate_swarm_chat
register_function
register_hand_off
agentchat
agents
browser_utils
cache
code_utils
coding
doc_utils
exception_utils
formatting_utils
graph_utils
import_utils
interop
io
logger
math_utils
messages
oai
retrieve_utils
runtime_logging
token_count_utils
Overview
count_token
get_max_token_limit
num_tokens_from_functions
percentile_used
token_left
tools
types
token_count_utils
autogen.token_count_utils.get_max_token_limit
​
get_max_token_limit
get_max_token_limit
(
model
:
Â
str
Â
=
Â
'gpt-3.5-turbo-0613'
)
-
>
int
Parameters:
Name
Description
model
Type:
str
Default:
‘gpt-3.5-turbo-0613’
count_token
num_tokens_from_functions
On this page
get_max_token_limit