(api_base: str | None)
| 12 | |
| 13 | |
| 14 | def is_opencode_api_base(api_base: str | None) -> bool: |
| 15 | return bool( |
| 16 | api_base |
| 17 | and re.fullmatch( |
| 18 | r"https://opencode\.ai/(?:zen(?:/go)?|inference/(?:go/)?(?:openai|anthropic))(?:/v1)?/?", api_base |
| 19 | ) |
| 20 | ) |
| 21 | |
| 22 | |
| 23 | def go_model_info(model: str) -> Mapping[str, object]: |
no outgoing calls
no test coverage detected