Prefer Service.ThinkingConfig over raw ThinkingConfig class names in Anthropic and Google services and examples

This commit is contained in:
Paul Kompfner
2026-03-11 12:34:10 -04:00
parent 6b168d6bbb
commit 51a8a28a99
6 changed files with 23 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ from pipecat.processors.aggregators.llm_response_universal import (
)
from pipecat.runner.types import RunnerArguments
from pipecat.runner.utils import create_transport
from pipecat.services.anthropic.llm import AnthropicLLMService, AnthropicThinkingConfig
from pipecat.services.anthropic.llm import AnthropicLLMService
from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.transports.base_transport import BaseTransport, TransportParams
@@ -64,7 +64,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
llm = AnthropicLLMService(
api_key=os.getenv("ANTHROPIC_API_KEY"),
settings=AnthropicLLMService.Settings(
thinking=AnthropicThinkingConfig(
thinking=AnthropicLLMService.ThinkingConfig(
type="enabled",
budget_tokens=2048,
),