Spaces:
Sleeping
Sleeping
keremberke
commited on
Upload gpt_utils.py
Browse files- gpt_utils.py +1 -1
gpt_utils.py
CHANGED
@@ -17,5 +17,5 @@ sana verilen cumledeki hatalari gidericeksin
|
|
17 |
|
18 |
def update_text_with_ai(text: str):
|
19 |
response = completion("azure/gpt-4-0125-preview", messages = [{ "content": system_prompt,"role": "system"},{ "content": text,"role": "user"}])
|
20 |
-
updated_text = response.choices[0].
|
21 |
return updated_text
|
|
|
17 |
|
18 |
def update_text_with_ai(text: str):
|
19 |
response = completion("azure/gpt-4-0125-preview", messages = [{ "content": system_prompt,"role": "system"},{ "content": text,"role": "user"}])
|
20 |
+
updated_text = response.choices[0].message.content
|
21 |
return updated_text
|