( ctx context.Context, systemPrompt string, messages []map[string]any, opts CompleteOptions, )
| 913 | "length": "max_tokens", |
| 914 | "content_filter": "refusal", |
| 915 | } |
| 916 | |
| 917 | mapped := stopReasonMap[finishReason] |
| 918 | if mapped == "" { |
| 919 | if finishReason == "" { |
| 920 | mapped = "end_turn" |
| 921 | } else { |
| 922 | mapped = finishReason |
| 923 | } |
| 924 | } |
| 925 |