MCPcopy Create free account
hub / github.com/InternScience/InternAgent / set_model

Function set_model

tasks/AutoTTS/code/llm.py:17–19  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

15current_prompt_tokens, current_completion_tokens = 0, 0
16
17def set_model(model):
18 global model_name
19 model_name = model
20
21async def gen(msg, model=None, temperature=None, response_format="json_object"):
22 global call_count, cost, current_prompt_tokens, current_completion_tokens, model_name

Callers 2

__init__Method · 0.90
optimize_datasetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected