ページの先頭行へ戻る
Enterprise Postgres 17 SP2 リリース情報

2.22.3 OpenAIインターフェースの変更

非互換

Fujitsu Enterprise Postgres 17 SP2では、OpenAIのインターフェースを変更します。

対処方法

client_config引数により、base_urlおよびtimeout_secondsを設定してください。

SELECT ai.openai_embed(
    model => 'text-embedding-ada-002',
    input_text => 'Hello world',
    client_config => ai.openai_client_config(
        base_url => 'https://custom-openai-api.com/v1'
        timeout_seconds => 45.0
    )
);