Skip to content

Commit

Permalink
Merge commit 'b00554adc2c50fc7c890585b5ee4af04626d57c0' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Mar 25, 2024
2 parents 8abc451 + b00554a commit 9bed381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client/src/api/networks/network/communities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ export default async function communitiesCreate(graph: Graph, computeClusters: b
const communities = Promise.all(
Array.from({ length: count }, async (_, index) => {
const hits = await networkSearchHits(query, model, communityGetLinks(graph, index))
console.log("trois")

const community = {
index: index,
label: GetColorName(vosColors[index]) ?? `Unnamed ${index + 1}`,
color: vosColors[index] ?? "#e2e2e2",
label: vosColors?.[index] ? GetColorName(vosColors[index]) : `Unnamed ${index + 1}`,
color: vosColors?.[index] ?? "#e2e2e2",
ids: communityGetIds(graph, index),
size: communityGetSize(graph, index),
maxYear: communityGetMaxYear(graph, index),
Expand Down
3 changes: 2 additions & 1 deletion client/src/api/networks/network/openai.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import MistralClient, { ResponseFormats } from "@mistralai/mistralai"

const ENABLED = false
const mistral = new MistralClient("OpLulxlAWDbZuIUNOLtdQwlNaXw8iKNw")
const { VITE_MISTRAL_API_KEY } = import.meta.env
const mistral = new MistralClient(VITE_MISTRAL_API_KEY)

async function mistralLabelsFromDomains(domains: any): Promise<string> {
const completion = await mistral.chat({
Expand Down

0 comments on commit 9bed381

Please sign in to comment.