Skip to content

[Bug]: When a model conforms to the OpenAI protocol, setting the provider of some models to OpenAI results in an error. #105

@xxsc0529

Description

@xxsc0529

Describe the bug

CALL DBMS_AI_SERVICE.CREATE_AI_MODEL( 'bge-reranker-v2-m3', '{"type":"rerank","model_name":"BAAI/bge-reranker-v2-m3"}' )

call DBMS_AI_SERVICE.CREATE_AI_MODEL_ENDPOINT( 'rerank_endpoint_1', '{"ai_model_name":"bge-reranker-v2-m3","scope":"all","url":"https://api.siliconflow.cn/v1/rerank","access_key":"******", "provider":"openai"}' )

SELECT AI_RERANK("BAAI/bge-reranker-v2-m3","Apple",'["apple","banana","fruit","vegetable"]');

When a model conforms to the OpenAI protocol, setting the provider of some models to OpenAI results in an error.
Changing "provider":"openai" to "provider":"siliconflow" will allow it to execute correctly.

Environment

  • OS Version and CPU Arch(uname -a):

  • OB Version(LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./observer -V):

  • Hardware resource(cpu core/memory size/disk hardware):

Fast Reproduce Steps(Required)

Steps to reproduce the behavior:

as mentioned above

Expected behavior

Can be executed normally
Actual Behavior

Cannot be executed normally

Additional context

docker environment
The error message is
SQL error [1235] [0A000]: this provider current not support not supported

Metadata

Metadata

Assignees

Type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions