Skip to content

BUG: hard coded to use gpt-4o model #51

@michaelneale

Description

@michaelneale

Somehow it is always passing in gpt-4o/mini even when calling anthropic providers:

eg in exchange:

    def complete(
        self,
        model: str,
        system: str,
        messages: List[Message],
        tools: List[Tool] = [],
        **kwargs: Dict[str, Any],
    ) -> Tuple[Message, Usage]:
        print("anthropic model", model)

Always shows a gpt4 model despite the config being:

anthropic:
  provider: anthropic
  processor: claude-3-5-sonnet-20240620
  accelerator: claude-3-5-sonnet-20240620
  moderator: truncate
  toolkits:
  - name: developer
    requires: {}

Seems a regression @baxen @lukealvoeiro with some refactoring with provider loading?

edit: this is due to truncate.py having it hard coded, fix: square/exchange#35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions