Skip to content

Commit

Permalink
Revert Proxy (#140)
Browse files Browse the repository at this point in the history
Remove streaming, revert host
  • Loading branch information
tianjing-li committed May 16, 2024
1 parent d4377e9 commit be79b09
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env-template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# REQUIRED VARIABLES
NEXT_PUBLIC_API_HOSTNAME=http://backend:8000
NEXT_PUBLIC_API_HOSTNAME=http://localhost:8000
DATABASE_URL=postgresql+psycopg2://postgres:postgres@db:5432

# TOOLS
Expand Down
8 changes: 0 additions & 8 deletions src/interfaces/coral_web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ const nextConfig = {
},
];
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${env.NEXT_PUBLIC_API_HOSTNAME}/v1/:path*`,
},
];
}
};

const getNextConfig = (phase) => {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/coral_web/src/cohere-client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class CohereClient {
| 'deployments'
| 'experimental_features'
) {
return `/api/${endpoint}`;
return `${this.hostname}/v1/${endpoint}`;
}

private getHeaders(omitContentType = false) {
Expand Down

0 comments on commit be79b09

Please sign in to comment.