This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| import 'dart:ui'; | |
| import 'package:app/grpc_generated/client.dart'; | |
| import 'package:app/grpc_generated/init_py.dart'; | |
| import 'package:app/grpc_generated/init_py_native.dart'; | |
| import 'package:app/grpc_generated/service.pbgrpc.dart'; | |
| import 'package:flutter/material.dart'; | |
| Future<void> pyInitResult = Future(() => null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dotenv from "dotenv"; | |
| const API_KEY = process.env.API_KEY; | |
| const API_ENDPOINT = process.env.API_ENDPOINT; // ?api-version=2023-07-01-preview is required as of August 2023 | |
| const validate = async (name: string, project: string, role: string, category: string, feedback: string, summary: string): Promise<{ status: string, recommendations: string }> => { | |
| var nominee = generateNomineeString(name, project, role, category, feedback, summary); | |
| // Using function call capability of OpenAI API to ensure response is properly formatted JSON | |
| // Before function calling I asked to reply via JSON, one of side effect was that in 'recomendations' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| const String h = 'kjddHjblwoopwedlradljljlkdfefldlkfdog dgdfgdf'; | |
| abstract class A { | |
| String getMessage() => 'A'; | |
| } | |
| class B { | |
| String getMessage() => 'B'; |
NewerOlder