picoclaw/pkg/providers
yinwm f83790e89c fix: add VLLM default API base and implement MaxTokensField support
1. Add VLLM default API base (http://localhost:8000/v1)
   - Previously returned empty string, causing provider creation to fail

2. Implement MaxTokensField configuration
   - Add maxTokensField field to HTTPProvider
   - Add NewHTTPProviderWithMaxTokensField constructor
   - Use configured field name for max_tokens parameter
   - Fallback to model-based detection for backward compatibility

3. Add tests for VLLM, deepseek, ollama default API bases

Example config usage:
{
  "model_name": "glm-4",
  "model": "openai/glm-4",
  "max_tokens_field": "max_completion_tokens"
}

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 01:43:24 +08:00
..
antigravity_provider.go fix(antigravity): preserve thought signature on tool call parts 2026-02-17 20:05:47 +05:30
antigravity_provider_test.go fix(antigravity): normalize tool calls to avoid empty function names 2026-02-17 20:05:35 +05:30
claude_cli_provider.go feat: add Codex CLI provider for subprocess integration (#80) 2026-02-16 11:40:17 +08:00
claude_cli_provider_integration_test.go feat: merge heartbeat service improvements from feat-heartbeat branch 2026-02-13 01:42:22 +08:00
claude_cli_provider_test.go refactor: simplify legacy_provider.go from 349 to 49 lines 2026-02-19 01:30:19 +08:00
claude_provider.go feat(providers): add SDK-based providers for subscription OAuth login 2026-02-11 13:27:59 -06:00
claude_provider_test.go feat(providers): add SDK-based providers for subscription OAuth login 2026-02-11 13:27:59 -06:00
codex_cli_credentials.go feat: add Codex CLI provider for subprocess integration (#80) 2026-02-16 11:40:17 +08:00
codex_cli_credentials_test.go feat: add Codex CLI provider for subprocess integration (#80) 2026-02-16 11:40:17 +08:00
codex_cli_provider.go feat: add Codex CLI provider for subprocess integration (#80) 2026-02-16 11:40:17 +08:00
codex_cli_provider_test.go feat: add Codex CLI provider for subprocess integration (#80) 2026-02-16 11:40:17 +08:00
codex_provider.go fix: codex agent 400 error (#102) 2026-02-16 11:46:02 +08:00
codex_provider_test.go fix: codex agent 400 error (#102) 2026-02-16 11:46:02 +08:00
factory_provider.go fix: add VLLM default API base and implement MaxTokensField support 2026-02-19 01:43:24 +08:00
factory_provider_test.go fix: add VLLM default API base and implement MaxTokensField support 2026-02-19 01:43:24 +08:00
github_copilot_provider.go fix: not used result 2026-02-15 08:02:23 +08:00
http_provider.go fix: add VLLM default API base and implement MaxTokensField support 2026-02-19 01:43:24 +08:00
legacy_provider.go refactor: simplify legacy_provider.go from 349 to 49 lines 2026-02-19 01:30:19 +08:00
tool_call_extract.go feat: add Codex CLI provider for subprocess integration (#80) 2026-02-16 11:40:17 +08:00
types.go fix(gemini): preserve thought_signature in tool calls to prevent 400 errors 2026-02-17 20:04:45 +05:30