Skip to content

Commit a93b8fe

Browse files
committed
update
1 parent e16bb98 commit a93b8fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/ai-services/openai/faq.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,15 @@ sections:
109109
How do I fix InternalServerError - 500 - Failed to create completion as the model generated invalid Unicode output?
110110
answer:
111111
You can minimize the occurrence of these errors by reducing the temperature of your prompts to less than 1 and ensuring you're using a client with retry logic. Reattempting the request often results in a successful response.
112+
- question: |
113+
How do I fix Server error (500): Unexpected special token
114+
answer: |
115+
This is a a known issue. You can minimize the occurrence of these errors by reducing the temperature of your prompts to less than 1 and ensuring you're using a client with retry logic. Reattempting the request often results in a successful response.
116+
If reducing temperature to less than 1 does not reduce the frequency of this error an alternative workaround is set presence/frequency penalties and logit biases to their default values. In some cases, it may help to set `top_p` to a non-default, lower value to encourage the model to avoid sampling tokens with lower probability tokens.
117+
Another way to solve this issue is to add logit_bias in the payload. For example, if error is `Unexpected special token: 100266`, then we can add "logit_bias": {100266:-100} to reduce the issue by using token 100266 mentioned in the service side error message.
112118
- question: |
113119
We noticed charges associated with API calls that failed to complete with status code 400. Why are failed API calls generating a charge?
114-
answer:
120+
answer:
115121
If the service performs processing, you will be charged even if the status code is not successful (not 200).
116122
Common examples of this are, a 400 error due to a content filter or input limit, or a 408 error due to a time-out. Charges will also occur when a `status 200` is received with a `finish_reason` of `content_filter`.
117123
In this case the prompt did not have any issues, but the completion generated by the model was detected to violate the content filtering rules, which result in the completion being filtered.

0 commit comments

Comments
 (0)