MCPcopy
hub / github.com/OpenBMB/ToolBench / change_name

Function change_name

toolbench/utils.py:66–70  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

64 return string
65
66def change_name(name):
67 change_list = ["from", "class", "return", "false", "true", "id", "and"]
68 if name in change_list:
69 name = "is_" + name
70 return name
71
72# code adapted from https://huggingface.co/kaiokendev/superhot-13b-8k-no-rlhf-test/blob/main/llama_rope_scaled_monkey_patch.py
73class CondenseRotaryEmbedding(torch.nn.Module):

Callers 5

observation_shortenFunction · 0.90
fetch_api_jsonMethod · 0.90
retrievingMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected