Grt1228 / chatgpt-java

ChatGPT Java SDK支持流式输出、Gpt插件、联网。支持OpenAI官方所有接口。ChatGPT的Java客户端。OpenAI GPT-3.5-Turb GPT-4 Api Client for Java
https://chatgpt-java.unfbx.com
Apache License 2.0
3.34k stars 817 forks source link

Model如何手动指定? #20

Closed prog-ape closed 1 year ago

prog-ape commented 1 year ago

Model如何手动指定?

Grt1228 commented 1 year ago
@Test
    public void completionsv2() {
        Completion q = Completion.builder()
                .prompt("三体人是什么?")
                .model("xxxxxxx")//参考Completion 的model枚举
                .build();
        CompletionResponse completions = v2.completions(q);
        System.out.println(completions);
    }
prog-ape commented 1 year ago

好的,谢谢