Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit d02b092

Browse files
committed
get tokens properly
1 parent b6b5107 commit d02b092

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

dist/index.js

Lines changed: 30 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import './fetch-polyfill.js'
22
import {Options} from './options.js'
3+
import * as tokenizer from './tokenizer.js'
34
import * as core from '@actions/core'
45
import {
56
ChatGPTAPI,
@@ -8,7 +9,6 @@ import {
89
SendMessageBrowserOptions,
910
SendMessageOptions
1011
} from 'chatgpt'
11-
import * as tokenizer from './tokenizer'
1212

1313
// define type to save parentMessageId and conversationId
1414
export type Ids = {

src/review.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {Octokit} from '@octokit/action'
44
import {Bot} from './bot.js'
55
import {Commenter} from './commenter.js'
66
import {Inputs, Options, Prompts} from './options.js'
7-
import * as tokenizer from './tokenizer'
7+
import * as tokenizer from './tokenizer.js'
88

99
const token = core.getInput('token')
1010
? core.getInput('token')

0 commit comments

Comments
 (0)