플레이그라운드
아래 예시는 이 엔드포인트에 맞춰 직접 쓴 것입니다. 프롬프트와 예시 미디어 URL을 직접 접근할 수 있는 것으로 바꾸고, 보내기 전에 지금 견적과 모델 상태를 확인하세요.
- 모델 답변
Check the value after **each step**: - `parseRate("1.25")` - then `saveRate(parsed)` If `parseRate("1.25")` already gives `1`, then **parseRate** lost the fraction. If it returns `1.25` but `saveRate` returns `1`, then **saveRate** lost it. So the key observation is: **inspect the intermediate parsed value before saving**.
정밀도 손실 지점 확인 - 384
- none
- 모델 답변
Test these boundary inputs: **0, 1, 4, 5**. - **1** and **4** are the valid lower and upper limits. - **0** is just below the valid range. - **5** is just above the valid range. This is the smallest set that covers both boundary values and their immediately invalid neighbors.
유효·무효 경곗값 테스트 - 384
- none
- 모델 답변
Add two guards: 1. On 429, read `Retry-After` and sleep that long before retrying: ```python delay = int(resp.headers.get("Retry-After", "1")) time.sleep(delay) ``` 2. Cap retries with a counter: ```python for attempt in range(MAX_RETRIES): resp = request() if resp.status_code != 429: return resp raise RuntimeError("too many 429s") ``` This avoids hammering the server and stops infinite loops.
Retry-After 준수 수정 - 384
- none
이 예시는 100만 토큰당 입력 $0.60 / 출력 $3.60부터 시작합니다. 설정을 바꾸면 플레이그라운드에서 예상 비용이 다시 계산됩니다.
