MCPcopy Create free account
hub / github.com/InternScience/SciReason / encode_base64_string

Function encode_base64_string

opencompass/models/yayi_api.py:48–55  ·  view source on GitHub ↗

对字符串进行 Base64 编码. :param s: 字符串 :return: 编码后的字符串

(s)

Source from the content-addressed store, hash-verified

46
47
48def encode_base64_string(s):
49 """对字符串进行 Base64 编码.
50
51 :param s: 字符串
52 :return: 编码后的字符串
53 """
54 encoded = base64.b64encode(s).decode()
55 return encoded
56
57
58def get_current_time_gmt_format():

Callers 1

generate_signatureMethod · 0.85

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected