diff --git a/ai.go b/ai.go index dfa1310..59ab9f8 100644 --- a/ai.go +++ b/ai.go @@ -20,6 +20,7 @@ func GetAddress(ctx context.Context, address, key, model string) (Address, error "-根据国家统计局的地址信息 帮我匹配出对应的省市区信息,如果是直辖县级行政区,直接按照区来处理,然后市一级显示上级代管市", "-只需要给出省市区具体名称,不需要解释", "-省市区之间用\",\"隔开", + "-区给具体的名称,不要返回市辖区", } res, err := modelObj.GetData(ctx, doubao.Text, func(input string) (string, error) { return input, nil diff --git a/ai_test.go b/ai_test.go index fa4e8eb..e955f2d 100644 --- a/ai_test.go +++ b/ai_test.go @@ -6,6 +6,6 @@ import ( ) func TestAddress(t *testing.T) { - res, err := GetAddress(context.Background(), "江苏省南通市海门市万科翡翠甲第15幢1101室", "236ba4b6-9daa-4755-b22f-2fd274cd223a", "doubao-1-5-lite-32k-250115") + res, err := GetAddress(context.Background(), "广西壮族自治区钦州市市辖区乘风大道乘风小区", "236ba4b6-9daa-4755-b22f-2fd274cd223a", "doubao-1-5-lite-32k-250115") t.Log(res, err) }