gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

NLP

Open CK88924 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

def G4F(transcript): content = "請幫我修正" + transcript + "語句中的錯別字並使語句通順"

# 假设的初始化和配置步骤
g4f.debug.logging = True
g4f.debug.version_check = False
print("Supported args for Bing:", g4f.Provider.Bing.params)

# 发起请求并获取响应
response = g4f.ChatCompletion.create(
    model=g4f.models.gpt_4,
    messages=[
        {"role": "system", "content": "您幫忙校正語句"},
        {"role": "user", "content": content},],
    )


# 处理并打印响应
print("Response:", response)
return response

類似此code 無法只取得修正後的回覆 並且語句修正不一定準確 000

CK88924 avatar Feb 12 '24 14:02 CK88924

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Feb 20 '24 00:02 github-actions[bot]

Even I translate it to English, I see no question

hlohaus avatar Feb 25 '24 10:02 hlohaus