openai-proxy
openai-proxy copied to clipboard
基于 Go 实现的 OpenAI HTTP 代理(云函数、lambda 函数、自己部署均可)
  大佬,然后上传完 点击部署 还是不行,步骤是否可以再详细一点,谢谢了
已经不能用了吗,前两天还能用,今天一直报400错误。
```java ObjectMapper mapper = defaultObjectMapper(); OkHttpClient client = OpenAiService.defaultClient("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", Duration.ofMinutes(2)) .newBuilder() .build(); Retrofit retrofit = new retrofit2.Retrofit.Builder(). baseUrl("https://open.aiproxy.xyz/"). client(client). addConverterFactory(JacksonConverterFactory.create(mapper)). addCallAdapterFactory(RxJava2CallAdapterFactory.create()). build(); Retrofit defaultRetrofit = OpenAiService.defaultRetrofit(client, mapper); OpenAiApi api =...