Skip to content

[Bug]: Error connecting to API endpoint #64

@Kadantte

Description

@Kadantte

Version

0.0.5

Operating System

Windows

Python Version

3.11

What happened?

in PR #4 I think you add ollama support but I get this error below when i'm trying to use it

Relevant log output

 synthetic-data-kit -c ollama_config.yaml system-check
INFO:numexpr.utils:NumExpr defaulting to 12 threads.
Loading config from: C:\Users\user\Desktop\synthetic-data-kit\synthetic_data_kit\config.yaml
Config has LLM provider set to: api-endpoint
Loading config from: C:\Users\user\Desktop\synthetic-data-kit\synthetic_data_kit\config.yaml
Config has LLM provider set to: api-endpoint
Loading config from: ollama_config.yaml
Config has LLM provider set to: api-endpoint
Environment variable check:
API_ENDPOINT_KEY: Not found
get_llm_provider returning: api-endpoint
API_ENDPOINT_KEY environment variable: Not found
L Error connecting to API endpoint: The api_key client option must be set either by passing api_key to the client or by
setting the OPENAI_API_KEY environment variable
Using custom API base: http://localhost:11434

Steps to reproduce

  1. synthetic-data-kit -c ollama_config.yaml system-check
  2. AND YOU GET THE ERROR ABOVE

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions