apiVersion: v1
kind: LLMAPIRequester
metadata:
  name: ollama-chat
  label:
    en_US: Ollama
    zh_CN: Ollama
  icon: ollama.svg
spec:
  config:
    - name: base_url
      label:
        en_US: Base URL
        zh_CN: 基础 URL
      type: string
      required: true
      default: "http://127.0.0.1:11434"
    - name: timeout
      label:
        en_US: Timeout
        zh_CN: 超时时间
      type: integer
      required: true
      default: 120
execution:
  python:
    path: ./ollamachat.py
    attr: OllamaChatCompletions
