corrige o erro da camera e da ia não funcionar e mudar o layout futuramente

This commit is contained in:
2026-05-06 12:48:08 +01:00
parent a5ee481b39
commit e480abd98e
30 changed files with 1807 additions and 1039 deletions

View File

@@ -0,0 +1,19 @@
package com.example.pap;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class AiConfig {
private static Retrofit retrofit;
private static final String BASE_URL = "https://openrouter.ai/api/v1/";
public static Retrofit getRetrofit() {
if (retrofit == null) {
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
}
return retrofit;
}
}