Skip to content

Can not run with OpenAI-Compatible Provider #215

Description

@BsoBird

duckdb 1.4.1

for example
i use minimax endpoint,

Below is an executable demo:

CREATE SECRET IF NOT EXISTS (
    TYPE OPENAI,
    BASE_URL 'https://api.minimax.io/v1',
    API_KEY 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJHcm91cE5hbWUiOiJMaXNvZGEiLCJVc2VyTmFtZSI6Ikxpc29kYSIsIkFjY291bnQiOiIiLCJTdWJqZWN0SUQiOiIxOTgyNDU3ODkwOTgzNjUwMDk3IiwiUGhvbmUiOiIxODgyOTM0NTYyOCIsIkdyb3VwSUQiOiIxOTgyNDU3ODkwOTc5NDU1NzkzIiwiUGFnZU5hbWUiOiIiLCJNYWlsIjoiIiwiQ3JlYXRlVGltZSI6IjIwMjUtMTAtMjggMTA6Mjk6NDciLCJUb2tlblR5cGUiOjEsImlzcyI6Im1pbmltYXgifQ.tDdV-bWBRZnxzHpSlgnRuWWCgXn0WcFwAFh9_eoorM7WhHr8lWoNK4WEkvn0X7nQm434UQad-ROORC4Jje10JuotbNQkzqEMuDwnMayvwFdkK45Mtefn-USyvbzLXOP2zvo-_OTzgHtAPf-hWEtwy5_22Y1UYLqi-0fEdC3ZbEdOHjG6xb8xOC9Qqt-QaHGqa8SmpmGC2k3UkZRSM2Mq9L2N3qjbjSJw8hjEuOAd0miBP9xvDS545Dbvu56kHpUpo6BpiVvr88reD6F2MTHnLr3ptZcUHXNTlk4WVMsRiZpLkfMB2PuaTBEd09nf4Vt9yPEjnEmAg9hXYaIoargi5A'
);


CREATE MODEL(
   'Test01Model12',
   'gpt-4o', 
   'openai', 
   {"tuple_format": "json", "batch_size": 32, "model_parameters": {"temperature": 0.7}}
);


SELECT llm_complete(
    {'model_name': 'Test01Model12'},
    {'prompt': 'Talk like a duck 🦆 and explain what a database is 📚'}
);   --- return null

Currently, I have found that flock's compatibility with the APIs of most vendors that provide OpenAI-compatible interfaces is not very good.
doc:https://platform.minimax.io/docs/guides/text-generation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions