- Replaced the default DialContext with SSRFSafeDialContext in the raw HTTP client to improve security against DNS rebinding attacks. - Added SSRF validation for BaseURL and endpoint in NewRemoteAPIChat and chat methods, ensuring safer URL handling. - Updated security utility functions to provide consistent SSRF checks across the application. |
||
|---|---|---|
| .. | ||
| chat.go | ||
| chat_provider_spec.go | ||
| image_resolve.go | ||
| json_field_extractor.go | ||
| json_field_extractor_test.go | ||
| ollama.go | ||
| remote_api.go | ||
| remote_api_test.go | ||
| sse_reader.go | ||