mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
fe4db1998d
* feat: add --tls-skip-verify flag for self-signed certificates Adds support for skipping TLS certificate verification when connecting to providers with self-signed certificates. This is particularly useful for local Ollama instances secured with HTTPS. - Add --tls-skip-verify command-line flag with security warnings - Update ProviderConfig to include TLSSkipVerify field - Modify HTTP client creation for all providers (Ollama, OpenAI, Anthropic, Google, Azure) - Create helper functions for TLS-aware HTTP client creation - Add comprehensive unit tests for TLS skip verify functionality - Update documentation with usage examples and security warnings Fixes #113 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai> * feat: add TLS skip verify support to script mode - Add TLSSkipVerify field to Config struct for script frontmatter - Update script parsing to handle tls-skip-verify in YAML frontmatter - Pass TLS configuration to model creation in script mode - Add example script demonstrating TLS skip verify usage - Update script examples documentation This allows scripts to specify tls-skip-verify: true in their frontmatter to connect to providers with self-signed certificates. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai> --------- Co-authored-by: opencode <noreply@opencode.ai>
9 lines
354 B
Bash
Executable File
9 lines
354 B
Bash
Executable File
#!/usr/bin/env -S mcphost script
|
|
---
|
|
# Example script demonstrating TLS skip verify for self-signed certificates
|
|
model: "ollama:llama3.2"
|
|
provider-url: "https://localhost:8443"
|
|
tls-skip-verify: true
|
|
max-tokens: 1000
|
|
---
|
|
Hello! Can you tell me about TLS certificates and why someone might need to skip certificate verification in development environments? |